Skip to content

Skip AppleDouble metadata during indexing - #317

Open
mvoidex wants to merge 2 commits into
aegea-dev:mainfrom
mvoidex:fix/appledouble-skipping
Open

mvoidex wants to merge 2 commits into
aegea-dev:mainfrom
mvoidex:fix/appledouble-skipping

Conversation

@mvoidex

@mvoidex mvoidex commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Recognize AppleDouble by its 26-byte header while preserving real photos
named ._*. Cache exclusions in scan and watch using path, size and mtime,
count them as skipped, and recheck them with scan --force.

Previously indexed AppleDouble rows remain in the library. prune does
not remove them while their files still exist.

Identify AppleDouble from its 26-byte header and file size, before hashing
or extracting metadata. Skip it in scan and watch regardless of its name,
while keeping real photos named ._*.

Count exclusions as skipped without reporting I/O failures. Preserve
unfiltered hashing so older trash entries can still be verified for undo.

Document the behavior and note that previously indexed rows remain.
Remember excluded files in a separate table with their path, size, mtime
and exclusion reason. Reuse matching entries in scan and watch; --force
always probes files again.

Persist media and exclusion updates atomically. Remove exclusions when
a file becomes media, and discard entries absent from a full scan.
Count cached exclusions as skipped.

Treat an absent cache as empty so existing libraries remain usable.
Document the behavior and test reuse, invalidation, forced scans and
transactional rollback.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant