Function move_file

Source
pub fn move_file(src: &str, dest: &str) -> Result<(), Error>
Expand description

Moves a file from the source path to the destination path.

  • src: The source file path.

  • dest: The destination file path.

  • Returns: Ok(()) if the file was moved successfully, or an Err with the error details.