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

Getting last modified date while decompressing a zip file #123

Open
misa-hase opened this issue Feb 18, 2025 · 2 comments
Open

Getting last modified date while decompressing a zip file #123

misa-hase opened this issue Feb 18, 2025 · 2 comments

Comments

@misa-hase
Copy link

It's possible to set the last modified date of files during compression.
Is there a way to get last modified date of Zip entries while unpacking them using stream-unzip?
None of the shown examples include the last modified date.

@michalc
Copy link
Member

michalc commented Feb 18, 2025

Ah no - it’s not part of stream-unzip’s API, and right now there are no plans to add it. For all our use cases so far, the date(s) associated with the member files is/are essentially meaningless/we only care about the data in them.

Can I ask, what’s your use case?

@misa-hase
Copy link
Author

misa-hase commented Feb 18, 2025

Ah no - it’s not part of stream-unzip’s API, and right now there are no plans to add it. For all our use cases so far, the date(s) associated with the member files is/are essentially meaningless/we only care about the data in them.

Can I ask, what’s your use case?

I use both stream-zip and stream-unzip libraries in a custom developed backup/file transfer solution.
While stream-zip does support setting modification date, stream-unzip does not expose it to us.
I'd like to preserve file modification date during file transfer if possible.

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

2 participants