pub async fn async_delete_dir(path: &str) -> Result<(), Error>
Expand description
Asynchronously deletes a directory and all its contents.
-
path
: The directory path to delete. -
Returns:
Ok(())
if the directory and its contents were deleted successfully, or anErr
with the error details.