Get Dir
A utility to get directory.
This utility searches for a target directory by checking for any directories or files that match the provided input.
Usage
Get directory by target with the following code:
use PathBuf;
use ;
let path: PathBuf = new
.target
.run
.unwrap;
Or get directory by target in reverse with the following code:
use PathBuf;
use ;
let path: PathBuf = new
.target
.run_reverse
.unwrap;
Async version also available with async_std, smol and tokio features:
use PathBuf;
use ;
let path: PathBuf = new
.target
.run_async
.await
.unwrap;
See also
For resolving the root of a workspace, consider using the workspace_root library.
License
This project is licensed under the terms of the MIT license.