pub fn create<P, Q>(target: P, junction: Q) -> Result<()>👎Deprecated since 1.3.1: This crate is deprecated. Use the upstream
junction v1.4.1 crate instead - the verbatim prefix fix has been merged.Expand description
Creates a junction point from the specified directory to the specified target directory.
N.B. Only works on NTFS.
§Error
This function may error if the junction path already exists.
§Example
use std::io;
use std::path::Path;
fn main() -> io::Result<()> {
let tmpdir = tempfile::tempdir()?;
let target = tmpdir.path().join("target");
let junction = tmpdir.path().join("junction");
create(&target, &junction)
}