Expand description
xattr/sidecar metadata – SyncSignature, dirty flags, JSON fallback.
Xattr/sidecar metadata – SyncSignature, MerkleSignature, dir_hash.
Metadata/dirty-flag management via xattr (primary) with JSON sidecar fallback.
Structs§
- Async
Sidecar - Background thread for non-blocking dirty flag I/O
- Sync
Signature - File sync signature stored in xattr/sidecar for change detection
Constants§
- XATTR_
EMBEDDING - xattr key for embedding metadata (model, dimensions, chunk count).
- XATTR_
ENRICHMENT - xattr key for LLM enrichment data (Dublin Core, APP envelope).
- XATTR_
FILE_ SIMILARITY - xattr key for file-level similarity fingerprint.
- XATTR_
MEDIA_ META - xattr key for extracted media metadata (EXIF, ID3, PDF info).
- XATTR_
SIMILARITY - xattr key for similarity metadata (SimHash, entropy class).
Functions§
- clear_
dir_ hash - Clear a stored directory hash (invalidation).
- get_
dir_ hash - Retrieve a stored directory hash from xattr.
- get_
merkle_ signature - Retrieve a stored Merkle signature from xattr or per-target index
- get_
metadata - Retrieve a metadata value by key from xattr or sidecar fallback
- get_
sidecar_ path - Compute the
.foxing_metasidecar path for a given file - get_
sync_ signature - Retrieve the stored sync signature for a file
- is_
dirty - Check if a file has the dirty flag set (indicates an in-progress copy)
- remove_
metadata - Remove a metadata key from both xattr namespaces and sidecar
- set_
dir_ hash - Store a directory-level Merkle hash via xattr on the target directory.
- set_
dirty_ flag - Set or clear the dirty flag on a file
- set_
merkle_ signature - Store a Merkle signature in xattr (small files) or per-target index (large files)
- set_
metadata - Store a metadata key-value pair via xattr (primary) or JSON sidecar (fallback)
- set_
metadata_ batch - Write multiple metadata keys. Uses xattr per-key (kernel can’t batch), but avoids sidecar entirely unless xattr is unsupported.
- set_
sync_ signature - Store a sync signature in the file’s xattr/sidecar metadata