summaryrefslogtreecommitdiff
path: root/ext/fs/std_fs.rs
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2024-03-09 09:07:29 +0530
committerGitHub <noreply@github.com>2024-03-09 09:07:29 +0530
commit0bed4d3e5153aaf2e06fb6579ac6f24acf63567f (patch)
treed64bdb9ba3b4b0b1b16a5ab6ff5bad23b55dd76d /ext/fs/std_fs.rs
parent26cee4eb0d041786f1d70cb2d9f3a6b6d82bd93d (diff)
fix(ext/node): support junction symlinks on Windows (#22762)
Fixes https://github.com/denoland/deno/issues/20609 Vitepress support! `vitepress dev` and `vitepress build` via BYONM
Diffstat (limited to 'ext/fs/std_fs.rs')
-rw-r--r--ext/fs/std_fs.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/fs/std_fs.rs b/ext/fs/std_fs.rs
index c1c9200cb..332866e45 100644
--- a/ext/fs/std_fs.rs
+++ b/ext/fs/std_fs.rs
@@ -810,6 +810,9 @@ fn symlink(
FsFileType::Directory => {
std::os::windows::fs::symlink_dir(oldpath, newpath)?;
}
+ FsFileType::Junction => {
+ junction::create(oldpath, newpath)?;
+ }
};
Ok(())