fungus::sys
pub fn exists<T: AsRef<Path>>(path: T) -> bool
Returns true if the given path exists. Handles path expansion.
use fungus::prelude::*; assert_eq!(sys::exists("/etc"), true);