Function xaction::cp [−][src]
pub fn cp(src: impl AsRef<Path>, dst: impl AsRef<Path>) -> Result<(), Error>
Copies src
into dst
.
src
must be a file, but dst
need not be. If dst
is an existing
directory, src
will be copied into a file in the dst
directory whose
name is same as that of src
.
Otherwise, dst
is a file or does not exist, and src
will be copied into
it.