MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / remove_dir

Function remove_dir

src/file_system.rs:111–114  ·  view source on GitHub ↗

Removes a directory and all its contents recursively.

(path: &Path)

Source from the content-addressed store, hash-verified

109
110/// Removes a directory and all its contents recursively.
111pub async fn remove_dir(path: &Path) -> Result<()> {
112 tokio::fs::remove_dir_all(path).await?;
113 Ok(())
114}
115
116/// Removes a file.
117pub async fn remove_file(path: &Path) -> Result<()> {

Callers 4

delete_taskMethod · 0.85
clean_tasksMethod · 0.85
test_remove_dirFunction · 0.85
buildMethod · 0.85

Calls

no outgoing calls

Tested by 1

test_remove_dirFunction · 0.68