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
Why does the path from the http example include the scheme?
The HTTP implementation deals transparently with http and https on the same client and connection pool. The two types or URL are only distinguishable by their protocol, and the lower-level client needs to see the whole URL to make the right call.
Conversely, s3/s3a and gs/gcs are allowed prefix aliases, but the backend doesn't use the prefix at all in the actual call to the remote store.
It might be reasonable for a backend, let's use s3 as an example, to remember that it was created with protocol "s3", and return paths as "s3://..." even when the path passed in was "s3a://..." (and vice-versa). However, this would mean a decent amount of rewriting.
Note that fs.unstrip_protocol should make full URLs.
I think I see where you are coming from. From a users perspective though, its a bummer to have to special case the output of url_to_fs differently for the HTTP filesystems.
fsspec.url_to_fs
seems to be inconsistently parsing the path from urls.Why does the path from the
http
example include the scheme?The text was updated successfully, but these errors were encountered: