mirror of
https://github.com/ouch-org/ouch.git
synced 2025-06-06 19:45:29 +00:00
fix windows symlink_file function not found
Signed-off-by: tommady <tommady@users.noreply.github.com>
This commit is contained in:
parent
48516eae81
commit
c418ca6240
@ -43,7 +43,7 @@ pub fn unpack_archive(reader: Box<dyn Read>, output_folder: &Path, quiet: bool)
|
|||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
std::os::unix::fs::symlink(&target, &full_path)?;
|
std::os::unix::fs::symlink(&target, &full_path)?;
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
std::os::windows::symlink_file(&target, &full_path)?;
|
std::os::windows::fs::symlink_file(&target, &full_path)?;
|
||||||
}
|
}
|
||||||
tar::EntryType::Regular | tar::EntryType::Directory => {
|
tar::EntryType::Regular | tar::EntryType::Directory => {
|
||||||
file.unpack_in(output_folder)?;
|
file.unpack_in(output_folder)?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user