Function get_mtree

Source
fn get_mtree(input_dir: &InputDir) -> Result<(Mtree, Sha256Checksum), Error>
Expand description

Returns an Mtree and its file hash digest.

ยงErrors

Returns an error if

  • the file does not exist,
  • the file contents cannot be read to a buffer,
  • or the file contents do not represent valid Mtree data.