-
Notifications
You must be signed in to change notification settings - Fork 124
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
Index is checking write access despite assuming read-only access #247
Comments
This is also causing problems for me - my |
I took a crack at this in #281, removing the check in So we could remove the checks on the Python level, but this would need to be pushed to the libspatialindex maintainers. |
You could raise an issue and/or PR for libspatialindex; the source code on GitHub is here |
Context
When passing a filename to the Index class, it assumes that the file can not be overwritten unless explicitly set by the user.
rtree/rtree/index.py
Lines 240 to 244 in 81cc81a
However, passing a file which is in a read-only dir is not allowed, since it is checked if the provided file is within a directory with write access.
rtree/rtree/index.py
Lines 255 to 256 in 81cc81a
Expected behavior
When the provided file is within a read-only directory, but overwrite
self.properties.overwrite = False
the no OSError should be raised.The text was updated successfully, but these errors were encountered: