pub fn is_dir() -> FileTypePredicate
Expand description
Creates a new Predicate
that ensures the path points to a directory.
§Examples
use std::path::Path;
use predicates::prelude::*;
let predicate_fn = predicate::path::is_dir();
assert_eq!(false, predicate_fn.eval(Path::new("Cargo.toml")));
assert_eq!(true, predicate_fn.eval(Path::new("src")));
assert_eq!(false, predicate_fn.eval(Path::new("non-existent-file.foo")));