Skip to main content

copy_whole

Function copy_whole 

Source
pub fn copy_whole(from: &Path, to: &Path) -> Result<u64>
Expand description

from copied to to as one of its versions held it whole, with read_whole’s check: through its descriptor, then again, a few times, when the file copied lost its name meanwhile or from names another one. to is made yours alone (on Unix). Returns the bytes copied.