Repository navigation
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
prunedoesnot remove them while their files still exist.