fix: path empty

This commit is contained in:
stkevintan
2025-12-06 19:58:23 +08:00
parent 2affa7c9b8
commit 167ae65695

View File

@@ -24,7 +24,8 @@ class FileURI(BaseModel):
path = uri[len(protocol):]
storage = s.value
break
if not path.startswith("/"):
path = "/" + path
path = Path(path).as_posix()
return cls(storage=storage, path=path)