Struct conserve::BlockDir [] [src]

pub struct BlockDir {
    pub path: PathBuf,
}

A readable, writable directory within a band holding data blocks.

Fields

Methods

impl BlockDir
[src]

[src]

Create a BlockDir accessing path, which must exist as a directory.

[src]

Store the contents of a readable file into the BlockDir.

Returns the addresses at which it was stored, plus the hash of the overall original file.

[src]

True if the named block is present in this directory.

[src]

Read back the contents of a block, as a byte array.

To read a whole file, use StoredFile instead.

Trait Implementations

impl Debug for BlockDir
[src]

[src]

Formats the value using the given formatter.