You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The intermediate files are not created while unzipping files. If the ZIP file contains directories, everything works as expected. But if the ZIP utility has not added entries for the intermediate directories, unzipping fails.
usually common command line tools to create zip files omit adding
directory names to the zip file. They are not necessary because
non empty directories can be derived from the file paths.
Previous unzipping in PKZipUnarchiver failed to unzip files if
the directories are not present in the ZIP file. Thus zipping on
the command line under Windows/Linux/MacOS produced an
incompatible ZIP file, espacially if just some files are added
to the ZIP file for incremental updates instead of the whole
directory.
This fix forces the creation of directories prior to unzipping
the files.
The intermediate files are not created while unzipping files. If the ZIP file contains directories, everything works as expected. But if the ZIP utility has not added entries for the intermediate directories, unzipping fails.
usually common command line tools to create zip files omit adding
directory names to the zip file. They are not necessary because
non empty directories can be derived from the file paths.
Previous unzipping in PKZipUnarchiver failed to unzip files if
the directories are not present in the ZIP file. Thus zipping on
the command line under Windows/Linux/MacOS produced an
incompatible ZIP file, espacially if just some files are added
to the ZIP file for incremental updates instead of the whole
directory.
This fix forces the creation of directories prior to unzipping
the files.
Signed-off-by: nros [email protected]
PKToolbox/Sources/Foundation/PKZipUnarchiver.m | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/PKToolbox/Sources/Foundation/PKZipUnarchiver.m b/PKToolbox/Sources/Foundation/PKZipUnarchiver.m
index aa61991..9202d6a 100644
--- a/PKToolbox/Sources/Foundation/PKZipUnarchiver.m
+++ b/PKToolbox/Sources/Foundation/PKZipUnarchiver.m
@@ -76,6 +76,11 @@
attributes:nil
error:outError];
} else {
The text was updated successfully, but these errors were encountered: