Function std::os::wasi::fs::link[][src]

pub fn link<P: AsRef<Path>, U: AsRef<Path>>(
    old_fd: &File,
    old_flags: u32,
    old_path: P,
    new_fd: &File,
    new_path: U
) -> Result<()>
🔬 This is a nightly-only experimental API. (wasi_ext #71213)
This is supported on WASI only.
Expand description

创建一个硬链接。

这对应于 path_link syscall。