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
From my debugging and analysis the root cause of this issue is that the "abfss" protocol is missing in the WrappedFileSystemFlavour.protocol_config["netloc_is_anchor"] list here. This list only includes "abfs", "az", and "adl" from the adlfs filesystem protocols. Consequently, paths like "abfs://container/path..." function as expected, but paths starting with "abfss"-protocol trigger an error. On closer look, it turns out that the absence of "abfss" in the netloc_is_anchor list causes the splitdrive method here of WrappedFileSystemFlavour to return an empty drive.
defsplitdrive(self, path: PathOrStr) ->tuple[str, str]:
ifself.netloc_is_anchor: # <-- this evaluates to False in case of "abfss" is used in UPath
...
else:
# all other cases don't have a drivereturn"", path
Question
Is the exclusion of the "abfss" protocol in the netloc_is_anchor list intentional or a mistake?
The text was updated successfully, but these errors were encountered:
Description
When attempting to define a
UPath
with the Azure protocol"abfss"
, aValueError
is raised:Steps to Reproduce
Define a
UPath
with the"abfss"
protocol:Analysis
From my debugging and analysis the root cause of this issue is that the
"abfss"
protocol is missing in theWrappedFileSystemFlavour.protocol_config["netloc_is_anchor"]
list here. This list only includes"abfs"
,"az"
, and"adl"
from theadlfs
filesystem protocols. Consequently, paths like"abfs://container/path..."
function as expected, but paths starting with"abfss"
-protocol trigger an error. On closer look, it turns out that the absence of"abfss"
in thenetloc_is_anchor
list causes thesplitdrive
method here ofWrappedFileSystemFlavour
to return an empty drive.Question
Is the exclusion of the
"abfss"
protocol in thenetloc_is_anchor
list intentional or a mistake?The text was updated successfully, but these errors were encountered: