Skip to main content

symlink_file

Function symlink_file 

Source
async fn symlink_file(
    target: impl AsRef<Path>,
    link: impl AsRef<Path>,
) -> Result<()>
Expand description

Links link to the file at target.

tokio::fs::symlink is unix-only. Windows distinguishes a link to a file from a link to a directory and offers symlink_file for the former, which is what every caller here wants. Elsewhere there is no portable equivalent to call.