️ Test if iter around roms dir
dl / lint (push) Successful in 1m19s Details
dl / docker (push) Successful in 2m58s Details

This commit is contained in:
Michel Roux 2024-02-24 22:40:05 +01:00
parent bb376df09f
commit 480276c316
1 changed files with 5 additions and 1 deletions

View File

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