1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-12 10:37:52 -05:00
denoland-deno/std/wasi/testdata/std_fs_read_dir.rs

10 lines
251 B
Rust
Raw Normal View History

// { "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);
}