#directory #folder #search #find

find_folder

A simple tool for finding the absolute path to a folder with a given name

4 releases (2 breaking)

Uses old Rust 2015

0.3.0 Oct 23, 2015
0.2.0 Jun 20, 2015
0.1.1 May 29, 2015
0.1.0 May 29, 2015

#1656 in Filesystem

Download history 867/week @ 2024-07-21 962/week @ 2024-07-28 733/week @ 2024-08-04 2000/week @ 2024-08-11 930/week @ 2024-08-18 1245/week @ 2024-08-25 1089/week @ 2024-09-01 1075/week @ 2024-09-08 902/week @ 2024-09-15 1297/week @ 2024-09-22 850/week @ 2024-09-29 415/week @ 2024-10-06 885/week @ 2024-10-13 771/week @ 2024-10-20 910/week @ 2024-10-27 759/week @ 2024-11-03

3,372 downloads per month
Used in 54 crates (37 directly)

MIT license

7KB
114 lines

find_folder Build Status

A simple tool for finding the absolute path to a folder with a given name.

It looks like this:

extern crate find_folder;

use find_folder::Search;

fn main() {
    println!("{:?}", Search::Parents(3).for_folder("src"));
    println!("{:?}", Search::Kids(3).for_folder("examples"));
    println!("{:?}", Search::Both(3, 3).for_folder("target"));
}

You can add it to your project by adding this to your Cargo.toml:

[dependencies]
find_folder = "*"

No runtime deps