Function latin::file::copy [] [src]

pub fn copy<Fp: AsRef<Path>, Tp: AsRef<Path>>(from: Fp, to: Tp) -> IoResult<()>

Copies a file from from to to.

If the file at to does not exist, it will be created. Otherwise, the file will be completely overwritten.

latin::file::copy("foo.txt", "bar.txt");