james-rms commented on issue #384: URL: https://github.com/apache/arrow-rs-object-store/issues/384#issuecomment-2917824133
Two points in response to above: > That however makes the type rather useless and use would never know if a path is valid or not before checking it with an ObjectStore. To be clear, this describes the Path type today. A user does not know if a path is valid before checking with an object store. > We could at least offer a is_path_valid method, but given how weird some stores / providers are, I bet you'll need to make that async/IO-driven as well. Most object stores APIs give a pretty clear definition of what's valid and what isn't for a given bucket, I don't think such a method would need to reach out to them at runtime to find out the rules. A user might need to figure out some details at runtime to pass to `is_path_valid()`, for example I _think_ that a blob path with a trailing slash is valid in Azure iff hierarchical namespaces are not enabled. So they'd need to provide that info. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org