Skip to content

Commit

Permalink
Update block/local/adapter.go
Browse files Browse the repository at this point in the history
Co-authored-by: arielshaqed <ariels@treeverse.io>
  • Loading branch information
guy-har and arielshaqed authored Nov 19, 2020
1 parent 1183d77 commit 6ad53c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions block/local/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,7 @@ func (l *Adapter) getPath(identifier block.ObjectPointer) (string, error) {
if err != nil {
return "", err
}
p := fmt.Sprintf("%s/%s", obj.StorageNamespace, obj.Key)
return path.Join(l.path, p), nil
return path.Join(l.path, obj.StorageNamespace, obj.Key), nil
}

// maybeMkdir runs f(path), but if f fails due to file-not-found MkdirAll's its dir and then
Expand Down

0 comments on commit 6ad53c1

Please sign in to comment.