fix: stat command with a directory marker (#4341)

This commit is contained in:
Anis Elleuch
2022-11-01 14:09:57 -07:00
committed by GitHub
parent cf7e0ae050
commit b5ee028536
-6
View File
@@ -2192,12 +2192,6 @@ func (c *S3Client) listInRoutine(ctx context.Context, contentCh chan *ClientCont
}
return
}
// Avoid sending an empty directory when we are specifically listing it
if strings.HasSuffix(object.Key, string(c.targetURL.Separator)) && o == object.Key {
continue
}
contentCh <- c.objectInfo2ClientContent(b, object)
}
}