pub fn put(
folder: &Path,
key: &[u8; 32],
source: &Path,
hash: &str,
) -> Result<Option<u64>, String>Expand description
A file sealed into the folder, unless its content is there already (from
any device). hash is its content when gathered: read again here, a file
that changed meanwhile is not sent, the next look sends it. The size sealed
when written here; none when it was there. One there for long is made fresh:
its writer does not take it out from under the record that names it again.