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

This commit is contained in:
Michel Roux 2024-02-24 22:40:05 +01:00
parent bb376df09f
commit 480276c316

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