Crates.io | get_dir |
lib.rs | get_dir |
version | 0.3.0 |
source | src |
created_at | 2024-09-26 15:42:57.269723 |
updated_at | 2024-10-13 10:01:36.383429 |
description | An utility to get directory |
homepage | https://github.com/alpheustangs/get_dir.rs |
repository | https://github.com/alpheustangs/get_dir.rs |
max_upload_size | |
id | 1387673 |
size | 6,964 |
An utility to get directory.
This utility searches for a target directory by checking for any directories or files that match the provided input.
Get directory by target with the following code:
use get_dir::{
Target,
TargetType,
get_dir_by_target,
};
get_dir_by_target(Target {
name: "src",
ty: TargetType::Dir,
});
Or get directory by target in reverse with the following code:
use get_dir::{
Target,
TargetType,
get_dir_by_target_reverse,
};
get_dir_by_target_reverse(Target {
name: "LICENSE",
ty: TargetType::File,
});
This project is MIT licensed, you can find the license file here.