Skip to content

Inherit parent folder date when no file date is set - #975

Merged
jonkoops merged 1 commit into
Stuk:mainfrom
jonkoops:inherit-parent-folder-date
Sep 9, 2026
Merged

Inherit parent folder date when no file date is set#975
jonkoops merged 1 commit into
Stuk:mainfrom
jonkoops:inherit-parent-folder-date

Conversation

@jonkoops

@jonkoops jonkoops commented Sep 9, 2026

Copy link
Copy Markdown
Collaborator

Follow-up to #610. Files added without a { date } option now pick up the parent folder's date when that folder is already in the archive, instead of each entry getting its own new Date(). Files added to an existing folder now share its date instead of each getting a fresh timestamp.

Setting { date } on a file still only affects that file, not the folder.

Generating the same archive twice can still produce different bytes if the run happens at a different time (#609). Fixing that needs a way to set one shared date when the zip is generated, not only when each entry is added.

When a file is added without a { date } option, use the parent folder's
date if that folder already exists. A { date } on the file applies only
to that file and does not change the folder.

Signed-off-by: Jon Koops <jonkoops@gmail.com>
@jonkoops
jonkoops merged commit 609d95f into Stuk:main Sep 9, 2026
23 checks passed
@jonkoops
jonkoops deleted the inherit-parent-folder-date branch September 9, 2026 17:13
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.

1 participant