Function std::os::copy_file

pub fn copy_file(from: &Path, to: &Path) -> bool

Copies a file from one location to another