file_dig 0.1.0

Find file paths in directory trees using search criteria
Documentation
  • Coverage
  • 0%
    0 out of 6 items documented0 out of 2 items with examples
  • Size
  • Source code size: 575.2 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.43 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • craftlion/file_dig
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • craftlion

file_dig

A crate to help find files in a directory according to various criteria.

Features

  • Search the list of files in a directory according to given criteria.
  • List of criteria :
    • File name
    • File size
    • File extension
  • Search can be recursive or not

Installation

cargo install file_dig

Usage

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);
}

Requirements

  • Rust 1.x
  • Cargo

Building from Source

Clone the repository and build using Cargo:

git clone https://github.com/craftlion/file_dig.git
cd file_dig
cargo build --release

Running Tests

cargo test

License

This project is licensed under MIT - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.