1 use crate::fs::asyncify;
2 
3 use std::io;
4 use std::path::Path;
5 
6 /// Creates a new file symbolic link on the filesystem.
7 ///
8 /// The `dst` path will be a file symbolic link pointing to the `src`
9 /// path.
10 ///
11 /// This is an async version of [`std::os::windows::fs::symlink_file`][std]
12 ///
13 /// [std]: std::os::windows::fs::symlink_file
symlink_file(src: impl AsRef<Path>, dst: impl AsRef<Path>) -> io::Result<()>14 pub async fn symlink_file(src: impl AsRef<Path>, dst: impl AsRef<Path>) -> io::Result<()> {
15     let src = src.as_ref().to_owned();
16     let dst = dst.as_ref().to_owned();
17 
18     asyncify(move || std::os::windows::fs::symlink_file(src, dst)).await
19 }
20