Skip to content

Commit

Permalink
fix: absolute url for windows (#655)
Browse files Browse the repository at this point in the history
fixes #650
  • Loading branch information
Delta456 authored Feb 16, 2024
1 parent 32f693e commit 68aa486
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/storage/localfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ impl ObjectStorage for LocalFS {

fn absolute_url(&self, prefix: &RelativePath) -> object_store::path::Path {
object_store::path::Path::parse(
format!("{}", self.root.join(prefix.as_str()).display()).trim_start_matches('/'),
format!("{}", self.root.join(prefix.as_str()).display())
.trim_start_matches(std::path::MAIN_SEPARATOR),
)
.unwrap()
}
Expand Down

0 comments on commit 68aa486

Please sign in to comment.