-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Expose ZIP stat information #31929
Expose ZIP stat information #31929
Conversation
this is mostly for nextcloud/user_migration#83 but I'm not too happy about the approach there the elephant in the room is that OC\Archive\Zip::getFiles() is called repeatedly for each call of |
28f41e6
to
44fece6
Compare
44fece6
to
62b6297
Compare
Add getStat to OC\Archive\Zip Required to be able to read the mtime and other metadata. To give direct access to mtime Signed-off-by: Vincent Petry <vincent@nextcloud.com> Co-authored-by: Côme Chilliet <come.chilliet@nextcloud.com>
62b6297
to
f5004e8
Compare
For some reason psalm doesnt find ZipArchive 🤔 |
The php used is not built with zip extension. I had the problem before but I think I did not solve it (I added to the baseline or something). |
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
See:
TL;DR: it’s not possible / too complicated to have ext-zip installed on the docker for the github psalm action, easier to add a stub for ZipArchive. |
drone failure unrelated |
Required to be able to read the mtime and other metadata.
Note: not added on the interface because it would require adjusting TarStreamer as well