Function cargo_util::paths::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.