Skip to content

Commit a168498

Browse files
committed
attempt to parse windows paths
1 parent 39e7673 commit a168498

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/uproot/_util.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,9 @@ def file_path_to_source_class(file_path: str | IO, options: dict):
386386
protocol, path = fsspec.core.split_protocol(file_path)
387387
if protocol == "file":
388388
file_path = unquote(path)
389+
if "://" not in file_path:
390+
file_path = "file://" + file_path
391+
_, file_path = fsspec.core.url_to_fs(file_path)
389392

390393
if not (
391394
isinstance(handler_cls, type)

0 commit comments

Comments
 (0)