pub trait Filter {
// Required methods
fn filter_existing_dirs(&self) -> ProjectDirs;
fn filter_non_dirs(&self) -> ProjectDirs;
fn filter_absent(&self) -> ProjectDirs;
fn filter_denied(&self) -> ProjectDirs;
fn filter_non_valid(&self) -> ProjectDirs;
}
Expand description
Filter project directories
Required Methods§
Sourcefn filter_existing_dirs(&self) -> ProjectDirs
fn filter_existing_dirs(&self) -> ProjectDirs
Return only existing directories.
Sourcefn filter_non_dirs(&self) -> ProjectDirs
fn filter_non_dirs(&self) -> ProjectDirs
Return only non-directory entries in places where directories are expected.
E.g. log
file in the place of the log
directory.
Sourcefn filter_absent(&self) -> ProjectDirs
fn filter_absent(&self) -> ProjectDirs
Return only non-existing fs entries.
E.g. missing log
directory.
Sourcefn filter_denied(&self) -> ProjectDirs
fn filter_denied(&self) -> ProjectDirs
Return only access denied fs entries.
E.g. no read and execute access to log
directory.
Sourcefn filter_non_valid(&self) -> ProjectDirs
fn filter_non_valid(&self) -> ProjectDirs
Basically filter using !path.is_dir()
, negation of the Filter::filter_existing_dirs