-
Notifications
You must be signed in to change notification settings - Fork 314
Options not working in File class #395
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
Comments
Interestingly the options code doesn't agree with the comments about defaults above either: Lines 56 to 61 in 94b7fa2
vs Lines 101 to 103 in 94b7fa2
I'll cook up a PR that fixes this issue and works as expected to keep the test passing - adjusting the comments as necessary. |
Also, depressingly, it doesn't matter what those options are set to; the tests always all pass. I'll add some tests. |
So, on further investigation, I don't think that As far as I can tell, this is the code which does the actual extraction to a file: Lines 597 to 624 in 34d2074
And there's nothing there that would restore times... I'm looking at this in more depth. |
Sorry, overzealous auto-closing. This is still a problem. |
This code
rubyzip/lib/zip/file.rb
Lines 88 to 89 in 249775f
doesn't do what it is intended to do, because when you pass in
restore_permissions: false
orrestore_times: false
, it will be evaluating tofalse || true
, which will always betrue
The text was updated successfully, but these errors were encountered: