#search #directory #folder #find #dir

find_folder

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

4 releases (2 breaking)

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

#116 in Filesystem

Download history 565/week @ 2020-03-16 531/week @ 2020-03-23 1053/week @ 2020-03-30 508/week @ 2020-04-06 534/week @ 2020-04-13 618/week @ 2020-04-20 494/week @ 2020-04-27 454/week @ 2020-05-04 503/week @ 2020-05-11 516/week @ 2020-05-18 503/week @ 2020-05-25 555/week @ 2020-06-01 474/week @ 2020-06-08 309/week @ 2020-06-15 317/week @ 2020-06-22 316/week @ 2020-06-29

2,124 downloads per month
Used in 32 crates (29 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