Function symlink_file

Source
pub async fn symlink_file<P: AsRef<Path>, Q: AsRef<Path>>(
    src: P,
    dst: Q,
) -> Result<()>
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.

ยงExamples

async_fs::windows::symlink_file("a.txt", "b.txt").await?;