Skip to content

Commit 7533d95

Browse files
committed
windows fix
1 parent 20a35f0 commit 7533d95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/zarr/storage/_zep8.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,13 @@ def is_zep8_url(url: Any) -> bool:
317317
}
318318

319319
# Check if adapter name looks like a ZEP 8 adapter and is not a standard scheme
320+
# Exclude Windows drive letters (single letter followed by backslash or forward slash)
320321
if (
321322
adapter_name
322323
and adapter_name.lower() not in standard_schemes
323324
and "/" not in adapter_name
324325
and "\\" not in adapter_name
326+
and not (len(adapter_name) == 1 and adapter_name.isalpha() and len(parts) == 2 and (parts[1].startswith("/") or parts[1].startswith("\\")))
325327
and (
326328
adapter_name.isalnum()
327329
or adapter_name.replace("_", "").replace("-", "").isalnum()

0 commit comments

Comments
 (0)