Module predicates::path [] [src]

Path Predicates

This module contains predicates specific to the file system.

Structs

ExistencePredicate

Predicate that checks if a file is present

FileTypePredicate

Predicate that checks the std::fs::FileType.

Functions

exists

Creates a new Predicate that ensures the path exists.

is_dir

Creates a new Predicate that ensures the path points to a directory.

is_file

Creates a new Predicate that ensures the path points to a file.

is_symlink

Creates a new Predicate that ensures the path points to a symlink.

missing

Creates a new Predicate that ensures the path doesn't exist.