Module tmpshare::storage[][src]

Abstracting away Metadata storage and file access.

Structs

Metadata

All the metadata for a served file.

Functions

add

Constructs the Metadata for a given file and writes it to the filesystem.

cleanup

Remove files older than the supplied days.

get_metadata

Retrieves the Metadata for a given hash.

hash_file

Calculates the Sha256 hash for a given file.

list

Lists all the Metadata.

read_metadata

Retrieves the Metadata for a given file.