| Crates.io | file-matcher-rs |
| lib.rs | file-matcher-rs |
| version | 0.2.3 |
| created_at | 2021-07-16 16:04:49.515208+00 |
| updated_at | 2021-07-16 18:41:51.245442+00 |
| description | A library to search files based on the name pattern (regex, wildmatch, exact) |
| homepage | https://github.com/feenkcom/file-matcher-rs |
| repository | https://github.com/feenkcom/file-matcher-rs |
| max_upload_size | |
| id | 423693 |
| size | 25,029 |
A Rust library to search files based on the name pattern (regex, wildcard, exact).
Use FileNamed to search for exactly one file matching the name pattern. Returns an Error if none or more than one file was found.
FileNamed::regex("cat.*")
.within("tests/assets")
.find()?
Use FilesNamed to find any amount of files matching the name pattern.
FilesNamed::wildmatch("*.txt")
.within("tests/assets")
.find()?