symlink_dir in async_std::os::windows::fs - Rust (original) (raw)

logo

async_std1.13.1

Sections

In async_std::os::windows::fs

async_std::os::windows::fs

Source

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

Available on unstable only.

Expand description

Creates a new directory symbolic link on the filesystem.

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

This function is an async version of std::os::windows::fs::symlink_dir.

§Examples

use async_std::os::windows::fs::symlink_dir;

symlink_dir("a", "b").await?;