1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-01 16:51:13 -05:00
denoland-deno/std/wasi/testdata/std_fs_read_dir.rs
2020-07-05 18:08:05 -04:00

9 lines
251 B
Rust

// { "preopens": { "/fixture": "fixture" } }
fn main() {
let entries = std::fs::read_dir("/fixture").unwrap();
assert_eq!(entries.count(), 4);
let entries = std::fs::read_dir("/fixture/directory").unwrap();
assert_eq!(entries.count(), 2);
}