Function delete_folder_all_async

Source
pub async fn delete_folder_all_async(path: &str) -> Result<()>
Expand description

Delete a folder from the filesystem after recursively deleting all its contents using async and tokio.

Uses tokio::fs internally.

ยงExamples

use delete::{delete_folder_all_async};

#[tokio::main]
async fn main() {
  // Delete node_modules folder and all its contents.
  delete_folder_all_async("node_modules").await.unwrap();
}