Skip to content

Commit eb1f634

Browse files
committed
fix: don't add ._ files to libraries
1 parent a1ab335 commit eb1f634

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tagstudio/src/core/utils/refresh_dir.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ def refresh_dir(self, lib_path: Path) -> Iterator[int]:
8282
# Ensure new file isn't in a globally ignored folder
8383
skip: bool = False
8484
for part in f.parts:
85-
if part in GLOBAL_IGNORE_SET:
85+
# NOTE: Files starting with "._" are sometimes generated by macOS Finder.
86+
# More info: https://lists.apple.com/archives/applescript-users/2006/Jun/msg00180.html
87+
if part.startswith("._") or part in GLOBAL_IGNORE_SET:
8688
skip = True
8789
break
8890
if skip:

0 commit comments

Comments
 (0)