[−][src]Function fungus::sys::remove
pub fn remove<T: AsRef<Path>>(path: T) -> FuResult<()>
Removes the given empty directory or file. Handles path expansion. Does not follow symbolic links but rather removes the links themselves.
Examples
use fungus::prelude::*; let tmpdir = PathBuf::from("tests/temp").abs().unwrap().mash("file_doc_remove"); assert!(sys::mkdir(&tmpdir).is_ok()); assert!(sys::remove(&tmpdir).is_ok()); assert_eq!(tmpdir.exists(), false);