Blazingly fast file search library built in Rust 🔥 [Work in progress]
Usage
Please report any problems you encounter when using rust search here: Issues
Add rust_search = "0.1.4"
in Cargo.toml.
[dependencies]
rust_search = "0.1.4"
Then, use it in your code:
use rust_search::Search;
fn main(){
let depth = 1;
let search = Search::new("/path/to/directory", Some("fileName"), Some(".fileExtension"), Some(depth));
for path in search {
println!("{}", path);
}
}
To get all the files with a specific extension in a directory, use:
use rust_search::Search;
Search::new("/path/to/directory", None, Some(".fileExtension"), Some(1));
To get all the files in a directory, use:
use rust_search::Search;
Search::new("/path/to/directory", None, None, Some(1));
Discord Server
🔵 Discord server & Linkedin
Click the button below to join the discord server or Linkedin
Contributors
Any contributions would be greatly valued as this library is still in its early stages.
- Doccumentation
- Benchmarks
- Implementation guidlines
- Code Improvement