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.
-
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. Moves a directory and all its contents to another location asynchronously. -
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.