Function std::os::windows::fs::symlink_file [] [src]

pub fn symlink_file<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> Result<()>

Creates a new file symbolic link on the filesystem.

The dst`dstpath will be a file symbolic link pointing to thesrc` path.

Examples

fn main() { use std::os::windows::fs; fn foo() -> std::io::Result<()> { try!(fs::symlink_file("a.txt", "b.txt")); Ok(()) } }
use std::os::windows::fs;

try!(fs::symlink_file("a.txt", "b.txt"));