cargo_util::paths

Function copy

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

Copies a file from one location to another.

Equivalent to std::fs::copy with better error messages.