You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
use std::fs;
|
|
use std::os::unix::fs as fsunix;
|
|
fn main() {
|
|
fsunix::symlink("stats.txt", "sym_stats.txt").expect("Cannot create symbolic link");
|
|
let sym_path = fs::read_link("sym_stats.txt").expect("Cannot read link");
|
|
println!("Link is {:?}", sym_path);
|
|
} |