fix: don't add ._ files to libraries

This commit is contained in:
Travis Abendshien
2025-01-23 00:19:35 -08:00
parent a1ab335dcb
commit eb1f634d38

View File

@@ -82,7 +82,9 @@ class RefreshDirTracker:
# Ensure new file isn't in a globally ignored folder
skip: bool = False
for part in f.parts:
if part in GLOBAL_IGNORE_SET:
# NOTE: Files starting with "._" are sometimes generated by macOS Finder.
# More info: https://lists.apple.com/archives/applescript-users/2006/Jun/msg00180.html
if part.startswith("._") or part in GLOBAL_IGNORE_SET:
skip = True
break
if skip: