Function async_std::fs::remove_dir[][src]

pub async fn remove_dir<P: AsRef<Path>>(path: P) -> Result<()>

Removes an empty directory.

This function is an async version of std::fs::remove_dir.

Errors

An error will be returned in the following situations:

Examples

use async_std::fs;

fs::remove_dir("./some/directory").await?;