Skip to main content

remove_tree

Function remove_tree 

Source
pub fn remove_tree(path: &Path) -> Result<()>
Expand description

What: Remove path, whatever it is: a file or link is unlinked, a directory is emptied and removed. Why: Links are never followed, as remove_dir_all guarantees; see the module description for the permissions.

In TS you’d write (pseudocode):

await removeTree(path);