diff --git a/server/src/storage/localfs.rs b/server/src/storage/localfs.rs index 8b802ebe8..e0880cff0 100644 --- a/server/src/storage/localfs.rs +++ b/server/src/storage/localfs.rs @@ -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() }