Function async_delete_dir

Source
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 an Err with the error details.