std::os::windows::fs::symlink_dir - Rust
Description: API documentation for the Rust `symlink_dir` fn in crate `std`.
Keywords: rust, rustlang, rust-lang, symlink_dir

# 1.1.0[−][src]Function std::os::windows::fs::symlink_dir

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

This is supported on Windows only.

Creates a new directory symlink on the filesystem.

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

# Examples

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

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

Run