Closed Fahrenberg closed 8 months ago
Work around:
do {
if let entry = archive[".DS_Store"] {
try archive.remove(entry)
}
try fm.unzipItem(at: iCloudZipFile, to: iCloudExtractURL)
listFiles(url: iCloudExtractURL)
} catch {
print(error)
}
Duplicate of https://github.com/weichsel/ZIPFoundation/issues/54
Summary
I'm zipping with shouldKeepParent: false into a existing folder Unzipping this file results in a error and aborts unzipping.
zipping without shouldKeepParent works obviously as the directory is newly created by ZIPFoundation.
Steps to Reproduce
Zip with
unzip with
Expected Results
adding all files in zip
Actual Results
aborts after trying add .DS_Store
Regression & Version
Related Link