Skip to main content

Module vaults

Module vaults 

Source

Structs§

ScanStats
VaultSync
Keeps the markdown memories this machine wrote in step with the notes in its vaults: a new or edited note is stored and supersedes the version before it, and a deleted or emptied note is retired. A note is re-read only when its mtime or size moved since the last scan in this process, and re-stored only when its SHA-256 differs from the ingest log’s, so a restart re-hashes every note once and writes nothing for unchanged ones.

Constants§

SCAN_INTERVAL

Functions§

configured_vaults
The configured vaults with ~ expanded and the paths normalized. A relative entry is dropped, because it would resolve against whatever directory the daemon happened to start in.
spawn
Runs VaultSync over the configured vaults every SCAN_INTERVAL, once the clock gate lets writes through. No thread starts when no vault is configured.