[][src]Function async_std::os::unix::fs::symlink

pub async fn symlink<P: AsRef<Path>, Q: AsRef<Path>>(
    src: P,
    dst: Q
) -> Result<()>
This is supported on Unix only.

Creates a new symbolic link on the filesystem.

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

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

Examples

use async_std::os::unix::fs::symlink;

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