symlink_file in async_std::os::windows::fs - Rust (original) (raw)
async_std1.13.1
Sections
In async_std::os::windows::fs
Function symlink_file
pub async fn symlink_file<P: AsRef<Path>, Q: AsRef<Path>>(
src: P,
dst: Q,
) -> Result<()>
Available on unstable
only.
Expand description
Creates a new file symbolic link on the filesystem.
The dst
path will be a file symbolic link pointing to the src
path.
This function is an async version of std::os::windows::fs::symlink_file.
§Examples
use async_std::os::windows::fs::symlink_file;
symlink_file("a.txt", "b.txt").await?;