Function file_with_meta::match_meta_with_source
source · pub fn match_meta_with_source<P1, P2, P3>(
dst: P1,
dst_meta: P2,
src: P3
) -> Result<Option<FileHttpMetadata>, Error>where
P1: AsRef<Path>,
P2: AsRef<Path>,
P3: AsRef<Path>,
Expand description
Verify that a file has not been changed, and additionally verify
that its source file, specified by the src
local path, has
also not been changed. Useful when e.g. uncompressing or otherwise
processing downloaded files.
Errors
Propagates errors from match_meta
.