Skip to main content

copy_file_hashed

Function copy_file_hashed 

Source
pub fn copy_file_hashed(src: &Path, dst: &Path) -> Result<(u64, String)>
Expand description

Copy a regular file into a new destination (O_EXCL) while hashing it. Refuses symlinks/FIFOs/devices and never follows a destination symlink. Returns (bytes, sha256).