Skip to content

Commit

Permalink
feat: symlink in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Dec 15, 2024
1 parent bc69c3c commit f3afc35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/files.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ pub fn copy_file<P: AsRef<Path>>(
} else if args.symlink {
#[cfg(unix)]
std::os::unix::fs::symlink(source_path, destination_path)?;
#[cfg(not(unix))]
panic!("This platform doesn't support symlink");
#[cfg(windows)]
std::os::windows::fs::symlink(source_path, destination_path)?;
} else {
let mut file_options = fs_extra::file::CopyOptions::new();
file_options.overwrite = args.force;
Expand Down

0 comments on commit f3afc35

Please sign in to comment.