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

Prevent creating empty directories #7

Merged
merged 1 commit into from
Sep 7, 2023
Merged

Conversation

d4mation
Copy link
Contributor

@d4mation d4mation commented Sep 6, 2023

When files are synced from the build directory to the zip directory, if the include/exclude rules would have resulted in an empty directory, that empty directory would be created and included in the ZIP.

By just skipping over any directories in the iterator, we prevent that from happening.

If the directory needs to be created, it is being created just before the file is written anyway.

When files are synced from the build directory to the zip directory, if
the include/exclude rules would have resulted in an empty directory,
that empty directory would be created and included in the ZIP.

By just skipping over any directories in the iterator, we prevent that
from happening.

If the directory needs to be created, it is being created just before
the file is written anyway.
@borkweb borkweb merged commit 9364284 into main Sep 7, 2023
2 checks passed
@borkweb borkweb deleted the prevent-creating-empty-dirs branch September 7, 2023 12:16
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

Successfully merging this pull request may close these issues.

2 participants