Skip to main content

remove_path

Function remove_path 

Source
pub fn remove_path(p: &Path, needs_privilege: bool) -> Result<()>
Expand description

Remove a file or directory. If needs_privilege is true on Unix, shells out to sudo rm -rf <path>; otherwise uses Rust stdlib.