Skip to content

Commit

Permalink
Fix key to manifest value on windows?
Browse files Browse the repository at this point in the history
  • Loading branch information
LDeakin committed Sep 22, 2024
1 parent 2f64699 commit 24823a6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ struct ChunkManifestJsonImplStorageTransformer<TStorage: ?Sized> {

impl<TStorage: ?Sized> ChunkManifestJsonImplStorageTransformer<TStorage> {
fn key_to_manifest_value(&self, key: &StoreKey) -> Option<&ChunkManifestValue> {
let root = strip_root_prefix(self.path.as_str());
let mut root = strip_root_prefix(self.path.as_str());
if cfg!(windows) {
root = root.replace("\\", "/").into();
}
let relative_key = key
.as_str()
.strip_prefix(&root)
Expand Down

0 comments on commit 24823a6

Please sign in to comment.