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

#1320 in Filesystem

Download history 852/week @ 2023-11-24 585/week @ 2023-12-01 706/week @ 2023-12-08 826/week @ 2023-12-15 523/week @ 2023-12-22 476/week @ 2023-12-29 733/week @ 2024-01-05 1127/week @ 2024-01-12 841/week @ 2024-01-19 792/week @ 2024-01-26 662/week @ 2024-02-02 1098/week @ 2024-02-09 1223/week @ 2024-02-16 1247/week @ 2024-02-23 1040/week @ 2024-03-01 690/week @ 2024-03-08

4,361 downloads per month
Used in 53 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