Skip to main content

remove_tree

Function remove_tree 

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

Recursively remove a directory tree (or a single entry), recovering from restricted permissions and never following a symlink. Used by fixtures and by shellgame remove, which must work after the permission levels left directories locked. Missing is fine.

ยงErrors

FixtureError when an entry cannot be inspected, listed or removed.