From 2de050c0b170533256156cda42b7a44158efba8e Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Tue, 28 Feb 2023 20:54:50 +0100 Subject: [PATCH] Only list subdirectories (not files) --- jlmkr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jlmkr.py b/jlmkr.py index c277be8..3d842a9 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -664,7 +664,7 @@ def list_jails(): List all available and running jails. """ - jails = os.listdir(JAILS_DIR_PATH) + jails = next(os.walk('jails'))[1] print("Available jails:\n") if not len(jails):