Replies: 1 comment 2 replies
-
Hey @matez0 👋 The decision is a historical one afaik. Not sure why bucket wasn't included at the time. At the point of setattr, the original URI is no longer known. So reconstructing the URI at that point is not possible, for instance we support multiple schemes (s3/s3n/s3u/s3a). Either way, such a change would be a breaking change as this is the public API. From my side there's no strong tendency to add bucket: is there a use-case that this would solve which can't be solved in your own code that uses smart_open? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
If I open a file with the built-in function, then the name attribute value of the file object will be the same as the first path parameter of the open function.
To be consistent with this behavior, I would expect to set the file name attribute to the S3 URI, if I open an S3 URI,
but it is set to the S3 key ID instead.
What do you think?
Beta Was this translation helpful? Give feedback.
All reactions