diff --git a/pkg/blobserver/localdisk/enumerate.go b/pkg/blobserver/localdisk/enumerate.go index ff81c4737..7f35f8ed2 100644 --- a/pkg/blobserver/localdisk/enumerate.go +++ b/pkg/blobserver/localdisk/enumerate.go @@ -48,7 +48,7 @@ func (ee *enumerateError) Error() string { } func readBlobs(opts readBlobRequest) error { - dirFullPath := opts.dirRoot + "/" + opts.pathInto + dirFullPath := filepath.Join(opts.dirRoot, opts.pathInto) dir, err := os.Open(dirFullPath) if err != nil { return &enumerateError{"localdisk: opening directory " + dirFullPath, err}