Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using createZipFileAtPath:savePath withFilesAtPaths:arrey, if there is a file and a folder in the array, the compression can be successful, but when decompressed, the folder becomes a 0-byte file and the folder cannot be opened. #706

Open
zhoudongliang opened this issue May 22, 2024 · 0 comments

Comments

@zhoudongliang
Copy link

Steps to reproduce

  1. Use createZipFileAtPath:savePath withFilesAtPaths:arrey
  2. Store a compressed file and a folder in the array
  3. Compression successful
  4. After decompression, I found that the folder could not be opened.

Expected behavior

When using createZipFileAtPath:savePath withFilesAtPaths:arrey, if there is a file and a folder in the array, the compression can be successful, but when decompressed, the folder becomes a 0-byte file and the folder cannot be opened.

When compressing a file and a folder at the same time, you can enable them to be successfully decompressed, I mean the folder inside.

Actual behavior

When using createZipFileAtPath:savePath withFilesAtPaths:arrey, if there is a file and a folder in the array, the compression can be successful, but when decompressed, the folder becomes a 0-byte file and the folder cannot be opened.

Version of ZipArchive

2.5.0+

Environmental information

macos 14.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant