| Crates.io | file_dig |
| lib.rs | file_dig |
| version | 0.1.1 |
| created_at | 2025-06-23 20:12:47.83341+00 |
| updated_at | 2025-06-23 20:25:31.142766+00 |
| description | Find file paths in directory trees using search criteria |
| homepage | https://github.com/craftlion/file_dig |
| repository | https://github.com/craftlion/file_dig |
| max_upload_size | |
| id | 1723380 |
| size | 575,849 |
A crate to help find files in a directory according to various criteria.
cargo install file_dig
use project_name;
fn main() {
let criteria = file_dig::FindCriteria::new()
.file_name(OsString::from("image"))
.file_extension(OsString::from("png"))
.file_size_minimum(674567)
.file_size_maximum(12346782);
let result = file_dig::find("tests_files", &criteria);
}
Clone the repository and build using Cargo:
git clone https://github.com/craftlion/file_dig.git
cd file_dig
cargo build --release
cargo test
This project is licensed under MIT - see the LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.