⚡️ Test if iter around roms dir
This commit is contained in:
parent
bb376df09f
commit
480276c316
@ -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])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user