-
Notifications
You must be signed in to change notification settings - Fork 313
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
Exclude files from being zipped #176
Comments
Hi all, I have this problem too, I tried to find workaround and I prepared all files which I want to zip as ArrayList and executed ZipFile#addFiles, but my structure of directories was broken inside the zip file. I believe we can save structure and we can exclude some files or directories too. @JarFiles Did you find any solution or workarounds? |
I'll try to add it to the src and create a pull request later |
PR merged. Issue to add tests created #189 . I will add tests before I release this feature. |
I have added tests. And also, I made some changes to the PR which was merged:
|
Actually, after some more thoughts, I moved the filter back to ZipParameters, because as part of an upcoming feature in #84, it will be possible to add folders also with |
Feature added in v2.6.0 released today |
Hey,
I wanted to know if it's possible to exclude files from being zipped.
For example:
ZipFile#addFolder adds all files and it's subdirectories to the zip file.
But there are a few files which I just don't want being added. I tried getting all files manually and then using ZipFile#addFiles but now all files end up being in the root directory of the zip file. Is there a way to keep the folder structure in the zip file?
The text was updated successfully, but these errors were encountered: