mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-15 07:05:41 +00:00
11 lines
285 B
Rust
11 lines
285 B
Rust
fn main() {
|
|
#[cfg(target = "wasi")]
|
|
let result = std::fs::read_dir("..");
|
|
#[cfg(not(target = "wasi"))]
|
|
let result: Result<(), String> = Err("placeholder".to_string());
|
|
println!(
|
|
"Reading the parent directory was okay? {:?}",
|
|
result.is_ok()
|
|
);
|
|
}
|