Skip to content

Commit

Permalink
fix: can_be_local for pathlib.Path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Rösner committed Nov 9, 2023
1 parent 3b9104f commit c531a48
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fsspec/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ def isfilelike(f: Any) -> TypeGuard[IO[bytes]]:


def get_protocol(url: str) -> str:
url = stringify_path(url)
parts = re.split(r"(\:\:|\://)", url, 1)
if len(parts) > 1:
return parts[0]
Expand Down

0 comments on commit c531a48

Please sign in to comment.