#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

#1920 in Filesystem

Download history 565/week @ 2024-11-15 925/week @ 2024-11-22 957/week @ 2024-11-29 902/week @ 2024-12-06 1006/week @ 2024-12-13 827/week @ 2024-12-20 400/week @ 2024-12-27 705/week @ 2025-01-03 1488/week @ 2025-01-10 1022/week @ 2025-01-17 734/week @ 2025-01-24 1245/week @ 2025-01-31 2188/week @ 2025-02-07 797/week @ 2025-02-14 1219/week @ 2025-02-21 994/week @ 2025-02-28

5,443 downloads per month
Used in 53 crates (35 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