1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-27 01:29:14 -05:00
denoland-deno/std/wasi/testdata/std_fs_file_create.rs

7 lines
185 B
Rust
Raw Normal View History

// { "preopens": { "/scratch": "scratch" } }
fn main() {
assert!(std::fs::File::create("/scratch/file").is_ok());
assert!(std::fs::metadata("/scratch/file").unwrap().is_file());
}