#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)

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

#191 in Filesystem

Download history 528/week @ 2021-08-11 349/week @ 2021-08-18 489/week @ 2021-08-25 425/week @ 2021-09-01 720/week @ 2021-09-08 637/week @ 2021-09-15 524/week @ 2021-09-22 362/week @ 2021-09-29 589/week @ 2021-10-06 538/week @ 2021-10-13 564/week @ 2021-10-20 613/week @ 2021-10-27 585/week @ 2021-11-03 906/week @ 2021-11-10 802/week @ 2021-11-17 506/week @ 2021-11-24

2,887 downloads per month
Used in 45 crates (36 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