You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
It would be nice to have a function/attribute to give me the full URL for an object. Currently, the ObjectMeta.location provides the path within the object store but I would like to get the full URL such as "gs://bucket/dir/file.txt".
Describe the solution you'd like
Maybe add an attribute "uri" to the ObjectMeta struct or provide a new function .get_uri on the ObjectStore struct.
Additional context
The reason I am looking for this is that I need to pass the URL a different program and it would be nice to keep all the logic centralised in the object_store library instead of having a separate function with "if gcp: "gs://" + path elif aws: "s3://" + path" etc.
The text was updated successfully, but these errors were encountered:
I wonder if you've given thought to simply storing the base URL alongside the ObjectStore, to allow constructing the URL in the form expected by the different program? Just spit-balling here...
Yeah I understand that there might be some complications in implementing this for all possible backends. I can totally store the URL in a different place but I just thought it would have been cool to get the info directly from the backend.
A further wrinkle here, is that some tools such as the AWS CLI are actually not following the URL specification, and are interpreting the URL paths verbatim.
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
It would be nice to have a function/attribute to give me the full URL for an object. Currently, the ObjectMeta.location provides the path within the object store but I would like to get the full URL such as "gs://bucket/dir/file.txt".
Describe the solution you'd like
Maybe add an attribute "uri" to the ObjectMeta struct or provide a new function
.get_uri
on the ObjectStore struct.Additional context
The reason I am looking for this is that I need to pass the URL a different program and it would be nice to keep all the logic centralised in the object_store library instead of having a separate function with "if gcp: "gs://" + path elif aws: "s3://" + path" etc.
The text was updated successfully, but these errors were encountered: