diff --git a/commands/retro.py b/commands/retro.py index 8f54c61..ec457ef 100644 --- a/commands/retro.py +++ b/commands/retro.py @@ -16,7 +16,11 @@ if not path.is_dir(): exit(1) for console in path.iterdir(): - if console.is_dir() and Path(console / "roms").is_dir(): + if ( + console.is_dir() + and Path(console / "roms").is_dir() + and list(Path(console / "roms").iterdir()) + ): # run has_files run(["has_files.sh", f"{console.name}/roms", console.name, "true", path])