Function fsutils::mv [−][src]
pub fn mv(path_one: &str, path_two: &str) -> bool
Expand description
Moves a file from path_one
to path_two
and returns a boolean based on success or failure.
Usage:
fsutils::mkdir("directory_one"); fsutils::mkdir("directory_two"); fsutils::create_file("directory_one/the_file"); assert_eq!(fsutils::mv("directory_one/the_file", "directory_two/the_file"), true);