for entry in glob("./*[!/]").expect("Failed to read glob pattern") {
match entry {
Ok(path) => println!("{}", path.display()),
Err(e) => println!("{}", e),
}
}
I get the error
thread 'main' panicked at 'Failed to read glob pattern: PatternError { pos: 1, msg: "invalid range pattern" }', src\main.rs:28:38
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
error: process didn't exit successfully: `target\debug\sad.exe` (exit code: 101)
[!/] doesnt work.
Maybe [!k] does.
OS: windows
ps. anny way to seperate files from folders.
WHen i run
I get the error
[!/] doesnt work.
Maybe [!k] does.
OS: windows ps. anny way to seperate files from folders.