Function std::os::windows::fs::symlink_file
pub fn symlink_file<P: AsRef<Path>, Q: AsRef<Path>>( original: P, link: Q) -> Result<()>
This is supported on Windows only.
Creates a new file symbolic link on the filesystem.
The link
path will be a file symbolic link pointing to the original
path.
Examples
use std::os::windows::fs; fn main() -> std::io::Result<()> { fs::symlink_file("a.txt", "b.txt")?; Ok(()) }
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/os/windows/fs/fn.symlink_file.html