Function async_fs::source ·
pub async fn remove_dir<P: AsRef<Path>>(path: P) -> Result<()>
Removes an empty directory.
Note that this function can only delete an empty directory. If you want to delete a directory
and all of its contents, use
An error will be returned in the following situations:
pathis not an existing and empty directory.
- The current process lacks permissions to remove the directory.
- Some other I/O error occurred.