pub fn ls<P, M>(path: P, matching: M) -> Result<Vec<PathBuf>>Expand description
List out the directory entries under path which match the glob pattern matching.
The return PathBufs will have path prefixed.
ยงExample
let ps = ls("src", "*.rs").unwrap();
assert_eq!(ps, vec![
PathBuf::from("src/args.rs"),
PathBuf::from("src/cmd.rs"),
PathBuf::from("src/fs.rs"),
PathBuf::from("src/io.rs"),
PathBuf::from("src/lib.rs"),
]);