From c531a48f58cad47dc8c4137b8e4489913178fe90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20R=C3=B6sner?= Date: Thu, 9 Nov 2023 09:01:41 +0100 Subject: [PATCH] fix: can_be_local for pathlib.Path. --- fsspec/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fsspec/utils.py b/fsspec/utils.py index 34f1ad821..543bd89d7 100644 --- a/fsspec/utils.py +++ b/fsspec/utils.py @@ -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]