Function std::os::windows::fs::symlink_dir1.1.0[][src]

pub fn symlink_dir<P: AsRef<Path>, Q: AsRef<Path>>(
    original: P,
    link: Q
) -> Result<()>
This is supported on Windows only.

Creates a new directory symlink on the filesystem.

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

Examples

use std::os::windows::fs;

fn main() -> std::io::Result<()> {
    fs::symlink_dir("a", "b")?;
    Ok(())
}
Run