karmaio 0.1.0

A modern, fast, share-nothing asynchronous runtime for Rust
Documentation
1
2
3
4
5
6
7
8
9
use std::path::Path;

/// Removes a directory and all of its contents.
///
/// This is an async version of [`std::fs::remove_dir_all`].
pub async fn remove_dir_all(path: impl AsRef<Path>) -> std::io::Result<()> {
    let path = path.as_ref().to_owned();
    super::asyncify(move || std::fs::remove_dir_all(path)).await
}