sectorbuilder: fix getpath

This commit is contained in:
Łukasz Magiera 2019-12-17 11:56:45 +01:00
parent 4ace1fe436
commit aa4bf9ab46

View File

@ -51,7 +51,7 @@ func (sb *SectorBuilder) GetPath(typ string, sectorName string) (string, error)
return "", xerrors.Errorf("unknown sector type: %s", typ)
}
return sb.filesystem.pathFor(dataType(typ)), nil
return filepath.Join(sb.filesystem.pathFor(dataType(typ)), sectorName), nil
}
func (sb *SectorBuilder) TrimCache(sectorID uint64) error {