[−][src]Function librelic::prelude::sys::remove
pub fn remove<T>(path: T) -> Result<(), FuError> where
T: AsRef<Path>,
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);