[−][src]Trait dia_files::filter::Filter
Required methods
fn accept(&self, path: &Path) -> bool
Returns true
to accept given path, false
to ignore it
Notes
-
Filters of files should always return
true
if input path is a directory. -
Filters of directories should always return
true
if input path is a file. -
Because of above rules,
!accept(...)
is not always the opposite meaning that one might expect. For instance:SymlinkFiles::accept(some_file) == false
meanssome_file
is not a symbolic link. However...SymlinkFiles::accept(some_file) == true
does not mean thatsome_file
is a symbolic link. Obviously,some_file
might be a directory.