bfind-0.0.2 is not a library.
bfind
A GNU find-like tool, but uses breadth-first search instead of depth-first search, written in Rust.
Why
- BFS prefers files that are shallower, which means files in shallower directories are more likely to be found in a shorter time.
- When encountering a subdirectory which has many very deep subdirectories, BFS doesn't stuck on it before moving to the next subdirectory.
- I want to learn Rust by making this tool.
NO WARRANTY: I make this tool mainly for my personal use. I have no plan to improve its performance or features, neither are issues guaranteed to get fixed. However, PR is welcome.
Build
Or for the release version
Install
Usage
Currently, only basic directory listing is implemented.
List current working directory:
List a specific directory:
Find a file with regular expression:
Find a file with glob:
Combining conditions:
Print with formatting:
Execute a command:
TODO
- Design a simple and powerful command line syntax.
- Implement the command line interface.