-
Notifications
You must be signed in to change notification settings - Fork 312
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
Zip::FileSystem::ZipFsFile#symlink?
always returns false
#530
Comments
I wonder if the behaviour of https://github.com/rubyzip/rubyzip/blob/master/lib/zip/filesystem/file.rb#L208-L210 The Lines 379 to 407 in 044759f
:symlink (as a symbol)
But on the other hand, I wonder if this method is supposed to behave more like Ruby's 🤔 |
That would seem sensible. Did I suppose if we were to do this then now would be the time, with version 3.0 coming up (at some point 😬 ). |
Having now looked this up, |
I went down a bit of a rabbit hole looking into this. There are quite a few other methods that could be implemented to better handle symlinks, such as |
I agree: let's not open the symlinks can of worms right now - although I'll have to get to it at some point 😢 Do you think we should change |
It makes sense to me, but I'm not sure how much of a breaking change that would be. As well as changing to strings, it would also need to return |
It would be a breaking change, but now is the time for those because next release is v3.0. I'll see about doing this soon. |
Closing this issue and transferring the subsequent conversation to #532. |
even if the entry for the given filepath is actually a symlink
https://github.com/rubyzip/rubyzip/blob/master/lib/zip/filesystem/file.rb#L200-L202
The text was updated successfully, but these errors were encountered: