#folder #directory #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

#1791 in Filesystem

Download history 1031/week @ 2024-09-02 1114/week @ 2024-09-09 871/week @ 2024-09-16 1301/week @ 2024-09-23 798/week @ 2024-09-30 368/week @ 2024-10-07 926/week @ 2024-10-14 808/week @ 2024-10-21 903/week @ 2024-10-28 748/week @ 2024-11-04 755/week @ 2024-11-11 562/week @ 2024-11-18 986/week @ 2024-11-25 879/week @ 2024-12-02 991/week @ 2024-12-09 1116/week @ 2024-12-16

4,076 downloads per month
Used in 55 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