Function move_dir

Source
pub fn move_dir(src_dir: &str, dest_dir: &str) -> Result<(), Error>
Expand description

Moves a directory and all its contents to another location.

§Arguments

  • &str - The source directory path.
  • &str - The destination directory path.

§Returns

  • Result<(), std::io::Error> - Ok if the directory was moved successfully, Err with error details otherwise.