Crates.io | find_folder |
lib.rs | find_folder |
version | 0.3.0 |
source | src |
created_at | 2015-05-29 12:55:34.680847 |
updated_at | 2015-12-16 00:01:56.610782 |
description | A simple tool for finding the absolute path to a folder with a given name. |
homepage | https://github.com/PistonDevelopers/find_folder |
repository | https://github.com/PistonDevelopers/find_folder.git |
max_upload_size | |
id | 2252 |
size | 7,403 |
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 = "*"