async_fs::unix

Function symlink

source
pub async fn symlink<P: AsRef<Path>, Q: AsRef<Path>>(
    src: P,
    dst: Q,
) -> Result<()>
Expand description

Creates a new symbolic link on the filesystem.

The dst path will be a symbolic link pointing to the src path.

ยงExamples

async_fs::unix::symlink("a.txt", "b.txt").await?;