symlink_path in std::os::wasi::fs - Rust
Description: Create a symbolic link.
Keywords: rust, rustlang, rust-lang, symlink_path

# Function std::os::wasi::fs::symlink_path
[−][src]

    pub fn symlink_path<P: AsRef<Path>, U: AsRef<Path>>(
        old_path: P,
        new_path: U
    ) -> Result<()>

🔬 This is a nightly-only experimental API. (`wasi_ext` #71213)
This is supported on WASI only.
Expand description

Create a symbolic link.

This is a convenience API similar to `std::os::unix::fs::symlink` and `std::os::windows::fs::symlink_file` and `std::os::windows::fs::symlink_dir`.