Documentation
¶
Overview ¶
ingest scans a directory tree and stores every regular file as an artifact, with its relative path attached as fsmeta so the projection View renders it under by-path/.
Demonstrates:
- Scrinium.Init for first-run, scrinium.Open for subsequent runs against the same store.
- filepath.WalkDir for batch traversal.
- Attaching fsmeta metadata so artifacts have a virtual path.
- SessionID + RollbackSession idiom for atomic-ish batches: a failure mid-ingest leaves a known set of artifacts to roll back, not orphans scattered across timestamps.
Usage:
go run ./ingest --src=/path/to/files --store=/tmp/my-store [--namespace=foo]
Click to show internal directories.
Click to hide internal directories.