pub fn copy_file(
root: &Path,
file: &Path,
into: &Path,
limit: u64,
) -> Result<PathBuf, String>Expand description
Copies file (under root) into the folder into, which is made, under its own name, read-only; at most limit
bytes. Returns the copy’s path.