diff --git a/cmd/xl-storage.go b/cmd/xl-storage.go index 84946e0f0..991f34c03 100644 --- a/cmd/xl-storage.go +++ b/cmd/xl-storage.go @@ -1977,12 +1977,6 @@ func (s *xlStorage) RenameData(ctx context.Context, srcVolume, srcPath, dataDir, s.deleteFile(srcVolumeDir, parentDir, false) } - if srcDataPath != "" { - if parentDir := pathutil.Dir(srcDataPath); isDirEmpty(parentDir) { - s.deleteFile(srcVolumeDir, parentDir, false) - } - } - return nil }