Skip to content

Commit 6fc30bf

Browse files
committed
Ensuring unzipiong path exists before extraction of zipfile
1 parent 7c0212c commit 6fc30bf

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src-tauri/src/lib/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -712,10 +712,8 @@ pub fn decompress_archive(
712712
archive_path: &str,
713713
destination_path: &str,
714714
) -> Result<(), DecompressionError> {
715-
let archive_path_long = make_long_path_compatible(archive_path);
716-
let archive_path = Path::new(&archive_path_long);
717-
let destination_path_long = make_long_path_compatible(destination_path);
718-
let destination_path = Path::new(&destination_path_long);
715+
let archive_path = Path::new(&archive_path);
716+
let destination_path = Path::new(&destination_path);
719717

720718
if !destination_path.exists() {
721719
std::fs::create_dir_all(destination_path)?;

0 commit comments

Comments
 (0)