Skip to main content

Module tombstone

Module tombstone 

Source
Expand description

Append-only JSONL tombstone journal for delete propagation across restarts. Append-only JSONL journal recording file/directory deletions.

Used by foxingd to persist deletion events across daemon restarts, and by fxcp --delete to avoid full target tree walks. Entries are idempotent – replaying a tombstone for an already-deleted path is a no-op.

Format: one JSON object per line (JSONL), crash-resilient for lines < PIPE_BUF.

{"p":"relative/path.txt","d":false,"t":1741400000,"s":42}

Structs§

TombstoneEntry
A single tombstone entry recording a deletion event.
TombstoneJournal
Persistent append-only tombstone journal backed by a JSONL file.

Functions§

replay_tombstones
Replay tombstone entries against a target directory, removing files/dirs.