Skip to content

Commit 9e8f675

Browse files
committed
Fix Windows backslash bug in file-protocol storage paths
1 parent 03436ff commit 9e8f675

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/datajoint/storage.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ def _full_path(self, path: str | PurePosixPath) -> str:
418418
elif self.protocol == "file":
419419
location = self.spec.get("location", "")
420420
if location:
421-
return str(Path(location) / path)
421+
return (Path(location) / path).as_posix()
422422
return path
423423
else:
424424
return self._require_adapter().full_path(self.spec, path)

0 commit comments

Comments
 (0)