mirror of
https://github.com/denoland/deno.git
synced 2024-12-26 09:10:40 -05:00
12 lines
296 B
Rust
12 lines
296 B
Rust
|
// { "preopens": { "/fixture": "fixture", "/scratch": "scratch" } }
|
||
|
|
||
|
fn main() {
|
||
|
assert!(
|
||
|
std::fs::hard_link("/fixture/file", "/scratch/hardlink_to_file").is_ok()
|
||
|
);
|
||
|
assert_eq!(
|
||
|
std::fs::read("/fixture/file").unwrap(),
|
||
|
std::fs::read("/scratch/hardlink_to_file").unwrap()
|
||
|
);
|
||
|
}
|