pub async fn remove_dir_all<P: AsRef<Path>>(path: P) -> Result<()>
Expand description
Removes a directory and all of its contents.
An error will be returned in the following situations:
path
is not an existing directory.
- The current process lacks permissions to remove the directory.
- Some other I/O error occurred.
async_fs::remove_dir_all("./some/directory").await?;