[go: up one dir, main page]

Function symlink_dir

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

Create a symlink to a directory.

On Windows, this is equivalent to std::os::windows::fs::symlink_dir. If you call it with a directory as the destination, TODO CONSEQUENCES.

On Unix, this is equivalent to std::os::unix::fs::symlink. If you call it with a directory as the destination, nothing bad will happen, but you’re ruining your cross-platform technique and ruining the point of this crate, so please don’t.

§Errors

An error will be returned if the symlink cannot be created.