Function walk

Source
pub fn walk(path: &PathBuf) -> Result<Vec<WalkFileEntry>>
Expand description

遍历指定根目录的入口函数

use std::{path::PathBuf, str::FromStr};
use crate::walk;
use anyhow::{Ok, Result}; 
fn test_walk(){
let res = walk(&PathBuf::from_str("./").unwrap());
let res = match res {
    Err(e) => panic!("{}", e),
    Ok(res) => res
};
print!("{}", res[1]);
}