-
-
Notifications
You must be signed in to change notification settings - Fork 177
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
#556 Fallback to alternate mtime correctly #557
base: master
Are you sure you want to change the base?
Conversation
This will check the `stat` and `details` namespaces before defaulting to the current time.
Hi James, sorry for the delay in answering, my real-life job has been taking a lot of my time away 😓 A test would be very appreciated, as to avoid any regression (in case the code is changed or refactored, it would be better not to have this issue pop up again later). For this you can probably subclass |
@althonos I've added a test for the fallback mtime behaviour, and I think this should now be ready for another look. |
Type of changes
Checklist
Description
This addresses an issues where
write_zip()
assumed that thedetails
namespace was always available. Thestat
namespace will be checked first, followed bydetails
, and finally the current time will be used ifst_mtime
is stillNone
.I'm willing to author a test against this, but I'm only aware of this being an issue with the s3 filesystem (and only when it encounters a directory) and I'm not certain how best to test that here.
#556