[][src]Function smol::fs::unix::symlink

pub async fn symlink<P, Q>(src: P, dst: Q) -> Result<(), Error> where
    P: AsRef<Path>,
    Q: AsRef<Path>, 

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?;