Function async_move_file

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

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

§Arguments

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

§Returns

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