w22
This commit is contained in:
@@ -347,7 +347,13 @@ def iter_photos(source: Path):
|
||||
dirs[:] = [d for d in dirs if not d.startswith(".")]
|
||||
for fname in files:
|
||||
if Path(fname).suffix.lower() in SUPPORTED_EXTENSIONS:
|
||||
yield Path(root) / fname
|
||||
p = Path(root) / fname
|
||||
# Přeskočit symlinky které vedou mimo share (WinError 3 - \\mnt\user\...)
|
||||
try:
|
||||
p.stat()
|
||||
except OSError:
|
||||
continue
|
||||
yield p
|
||||
|
||||
|
||||
def count_photos(source: Path) -> int:
|
||||
|
||||
Reference in New Issue
Block a user