tokio::fs

Function symlink

Source
pub async fn symlink(
    original: impl AsRef<Path>,
    link: impl AsRef<Path>,
) -> Result<()>
Expand description

Creates a new symbolic link on the filesystem.

The link path will be a symbolic link pointing to the original path.

This is an async version of std::os::unix::fs::symlink.