diff options
Diffstat (limited to 'weed/storage/disk_location.go')
| -rw-r--r-- | weed/storage/disk_location.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/storage/disk_location.go b/weed/storage/disk_location.go index 3da922f5b..e8c1d10e4 100644 --- a/weed/storage/disk_location.go +++ b/weed/storage/disk_location.go @@ -153,7 +153,7 @@ func (l *DiskLocation) loadExistingVolume(dirEntry os.DirEntry, needleMapKind Ne // skip if ec volumes exists, but validate EC files first if skipIfEcVolumesExists { - ecxFilePath := l.IdxDirectory + "/" + volumeName + ".ecx" + ecxFilePath := filepath.Join(l.IdxDirectory, volumeName+".ecx") if util.FileExists(ecxFilePath) { // Check if EC volume is valid by verifying shard count if !l.validateEcVolume(collection, vid) { |
