diff options
Diffstat (limited to 'generate-gallery.py')
| -rwxr-xr-x | generate-gallery.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generate-gallery.py b/generate-gallery.py index 454d093..1b4f639 100755 --- a/generate-gallery.py +++ b/generate-gallery.py @@ -48,10 +48,10 @@ def load_projects(root: str) -> dict: """Load all game meta data from the games directory""" projects = {} - for _parent, _, files in os.walk(root): + for _parent, dirs, files in os.walk(root): parent = pathlib.Path(_parent) scope = nested_get(projects, parent.parts[1:]) - if scope is None: + if scope is None and len(dirs): scope = {} nested_set(projects, parent.parts[1:], scope) |
