Function fs_err::copy

source ·
pub fn copy<P, Q>(from: P, to: Q) -> Result<u64>where
    P: AsRef<Path>,
    Q: AsRef<Path>,
Expand description

Copies the contents of one file to another. This function will also copy the permission bits of the original file to the destination file.

Wrapper for fs::copy.