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