pub fn copy<P: AsRef<Path>, Q: AsRef<Path>>(from: P, to: Q) -> Result<u64>
Copies a file from one location to another.
Equivalent to std::fs::copy with better error messages.
std::fs::copy