Only list subdirectories (not files)

This commit is contained in:
Jip-Hop 2023-02-28 20:54:50 +01:00
parent 5193085ad3
commit 2de050c0b1
1 changed files with 1 additions and 1 deletions

View File

@ -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):