Function std::os::wasi::fs::symlink_path

source ·
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)
Available on WASI only.
Expand description

创建一个符号链接。

这是一种便捷的 API,类似于 std::os::unix::fs::symlinkstd::os::windows::fs::symlink_filestd::os::windows::fs::symlink_dir