This commit is contained in:
2026-05-27 12:50:13 +02:00
parent 39ff5ca05c
commit 6ef637677e
5 changed files with 75 additions and 10 deletions
+7 -1
View File
@@ -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: