Function std::fs::soft_linkStable
[-] [+]
[src]
pub fn soft_link<P: AsRef<Path>, Q: AsRef<Path>>(src: P, dst: Q) -> Result<()>
Creates a new soft link on the filesystem.
The dst
path will be a soft link pointing to the src
path.
Examples
extern crate std; fn main() { use std::fs; fn foo() -> std::io::Result<()> { try!(fs::soft_link("a.txt", "b.txt")); Ok(()) } }use std::fs; try!(fs::soft_link("a.txt", "b.txt"));