build_work_path

Function build_work_path 

Source
pub fn build_work_path(path: &str) -> Result<PathBuf, AppError>
Expand description

构建工作路径

基于工作目录构建指定路径

§示例

use knife_util::build_work_path;

fn main() -> Result<(), knife_util::AppError> {
    let config_path = build_work_path("config/app.toml")?;
    println!("配置文件路径: {:?}", config_path);
    Ok(())
}