]>
git.proxmox.com Git - rustc.git/blob - vendor/tokio/src/fs/symlink_dir.rs
1 use crate::fs
::asyncify
;
6 /// Creates a new directory symlink on the filesystem.
8 /// The `dst` path will be a directory symbolic link pointing to the `src`
11 /// This is an async version of [`std::os::windows::fs::symlink_dir`][std]
13 /// [std]: std::os::windows::fs::symlink_dir
14 pub async
fn symlink_dir(src
: impl AsRef
<Path
>, dst
: impl AsRef
<Path
>) -> io
::Result
<()> {
15 let src
= src
.as_ref().to_owned();
16 let dst
= dst
.as_ref().to_owned();
18 asyncify(move || std
::os
::windows
::fs
::symlink_dir(src
, dst
)).await