Function async_move_dir

Source
pub fn async_move_dir<'a>(
    src_dir: &'a str,
    dest_dir: &'a str,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + 'a>>
Expand description

Moves a directory and all its contents to another location asynchronously.

§Arguments

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

§Returns

  • Pin<Box<dyn Future<Output = Result<(), std::io::Error>> + 'a>> - A pinned boxed future that resolves to the move operation result.