pub fn move_dir(src_dir: &str, dest_dir: &str) -> Result<(), Error>
Expand description
Moves a directory and all its contents to another location.
-
src_dir
: The source directory path. -
dest_dir
: The destination directory path. -
Returns:
Ok(())
if the directory and its contents were moved successfully, or anErr
with the error details.