tokio::fs

Function symlink_file

Source
pub async fn symlink_file(
    src: impl AsRef<Path>,
    dst: impl AsRef<Path>,
) -> Result<()>
Available on Windows and crate feature fs 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 is an async version of std::os::windows::fs::symlink_file