Skip to content

Commit 68aa486

Browse files
authored
fix: absolute url for windows (#655)
fixes #650
1 parent 32f693e commit 68aa486

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

server/src/storage/localfs.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,8 @@ impl ObjectStorage for LocalFS {
212212

213213
fn absolute_url(&self, prefix: &RelativePath) -> object_store::path::Path {
214214
object_store::path::Path::parse(
215-
format!("{}", self.root.join(prefix.as_str()).display()).trim_start_matches('/'),
215+
format!("{}", self.root.join(prefix.as_str()).display())
216+
.trim_start_matches(std::path::MAIN_SEPARATOR),
216217
)
217218
.unwrap()
218219
}

0 commit comments

Comments
 (0)