Function predicates::path::exists [−][src]
pub fn exists() -> ExistencePredicate
Creates a new Predicate
that ensures the path exists.
Examples
use std::path::Path; use predicates::prelude::*; let predicate_fn = predicate::path::exists(); assert_eq!(true, predicate_fn.eval(Path::new("Cargo.toml")));