Skip to content

Commit 167ae65

Browse files
committed
fix: path empty
1 parent 2affa7c commit 167ae65

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/schemas/file.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ def from_uri(cls, uri: str) -> "FileURI":
2424
path = uri[len(protocol):]
2525
storage = s.value
2626
break
27-
27+
if not path.startswith("/"):
28+
path = "/" + path
2829
path = Path(path).as_posix()
2930
return cls(storage=storage, path=path)
3031

0 commit comments

Comments
 (0)