We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb42ac5 commit f3a899eCopy full SHA for f3a899e
1 file changed
systest/backup/minio-large/backup_test.go
@@ -224,7 +224,10 @@ func copyToLocalFs(t *testing.T) {
224
minio.ListObjectsOptions{Prefix: "", Recursive: false})
225
for object := range objectCh1 {
226
require.NoError(t, object.Err)
227
- if object.Key != "manifest.json" {
+ // Skip root-level JSON manifest files (manifest.json, manifest_summary.json,
228
+ // manifest_summary_tmp.json). The inner recursive loop downloads them as files;
229
+ // MkdirAll on a path that already exists as a file fails with "not a directory".
230
+ if !strings.HasSuffix(object.Key, ".json") {
231
dstDir := backupDir + "/" + object.Key
232
require.NoError(t, os.MkdirAll(dstDir, os.ModePerm))
233
}
0 commit comments