Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aryaveersr/fdr
A file search tool written in rust!
https://github.com/aryaveersr/fdr
Last synced: 4 days ago
JSON representation
A file search tool written in rust!
- Host: GitHub
- URL: https://github.com/aryaveersr/fdr
- Owner: AryaveerSR
- License: mit
- Created: 2023-08-31T07:42:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-02T08:04:27.000Z (over 1 year ago)
- Last Synced: 2023-09-02T14:03:33.692Z (over 1 year ago)
- Language: Rust
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `fdr`
## A file search tool written in rust!
[![MIT](https://img.shields.io/crates/l/bitvec.svg?style=for-the-badge)](LICENSE)
## About
This is a basic file search tool I wrote as an exercise. It supports a small subset of features and has a small, pretty neat source.
## Arguments
If no pattern is passed, it lists all files in the directory.
See [`pattern.rs`](src/pattern.rs) for all the rules.- Free arguments: Pattern(s) for matching files. They can be:
- `/` indicates the subdirectories to search:
- `/*tar` will match all files having a parent directory containing `tar` in its name.
- `/target` will only match files with `target` as the parent directory.
- `.` to indicate the file extension:
- `*.exe` matches all files ending in `.exe`
- `*` matches everything.> You can also pass multiple of these and only list files which match them all.
- `--help` for help
- `--folders` / `-f` for listing folders.
- `--root` / `-r` for specifying the directory to search.
- `--depth` / `-d` for specifying the maximum depth to search.## License
This project is licensed under the [MIT License](https://opensource.org/licenses/MIT).