pub async fn delete_file_async(path: &str) -> Result<()>
Expand description
Delete a file from the filesystem using async
and tokio
.
Uses tokio::fs
internally.
ยงExamples
use delete::{delete_file_async};
#[tokio::main]
async fn main() {
// Delete file.txt
delete_file_async("file.txt").await.unwrap();
}