dir-structure 0.3.0

Model directory structures as plain Rust structs.
Documentation
1
2
3
4
5
6
7
8
9
10
use std::path::PathBuf;

pub fn get_example_dir_path(name: &str) -> PathBuf {
    let manifest_dir = env!("CARGO_MANIFEST_DIR");
    let mut path = PathBuf::from(&manifest_dir);
    path.push("examples");
    path.push("example_dirs");
    path.push(name);
    path
}