about
11/25/2022
RustDirNav Repository
RustDirNav Repository
DFS visitation of directory
Quick Status
Concept:
Design:
-
new() -> Self Create newDirNav which has visit method for recursive DFS. -
add_pat(&mut self, s&str) -> Self Add pattern to match file extension. Can be chained. -
visit(&mut self, p:&Path) Walks directory tree rooted at path p, looking for files matching pattern(s). -
recurse(&mut self, p:bool) Sets or resets option to recurse directory tree. -
hide(&mut self, p:bool) Sets or resets option to hide directories with no target contents. -
get_app(&mut self) -> &mut app Retrieves reference to embedded application, set with generic parameter. -
get_dirs(&self) -> usize Retrieves the number of directories entered -
get_files(&self) -> usize Retrieves the number of files processed. -
get_patts(&self) -> &SearchPatterns Retrieves vector of patterns. -
clear(&self) Returns DirNav<app> to its initial state.
Operation:
Build:
Status:
Tested on both Windows 10 and Ubuntu Linux