Skip to content

Commit

Permalink
fix: fixed symlink code for windows
Browse files Browse the repository at this point in the history
  • Loading branch information
IsaacTay committed Nov 17, 2022
1 parent c232aed commit 2bb63c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/perseus-cli/src/export.rs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ macro_rules! copy_directory {
}
}
#[cfg(windows)]
if std::os::unix::fs::symlink_dir($target.join($from), $target.join($to_symlink)).is_err() {
if std::os::windows::fs::symlink_dir($target.join($from), $target.join($to_symlink)).is_err() {
// That failed, try a usual copy
if let Err(err) = fs_extra::dir::copy(
$target.join($from),
Expand Down

0 comments on commit 2bb63c1

Please sign in to comment.