Module file_registry

Module file_registry 

Source
Expand description

Persistent catalogue of files uploaded by this node.

Every successful bp put call appends a StoredFileEntry to the local registry so that bp ls can enumerate all uploaded files without re-contacting the network.

The registry is stored as a flat JSON array in ~/.local/share/billpouch/file_registry.json.

Structsยง

FileRegistry
In-memory catalogue backed by file_registry.json.
StoredFileEntry
Metadata for a single file uploaded by this node.