change directory objects to never create new versions (#17109)

This commit is contained in:
Harshavardhana
2023-05-02 16:09:33 -07:00
committed by GitHub
parent 0ec722bc54
commit b53376a3a4
9 changed files with 74 additions and 40 deletions

View File

@@ -55,7 +55,7 @@ func (e metaCacheEntry) isObject() bool {
return len(e.metadata) > 0
}
// isObjectDir returns if the entry is representing an object__XL_DIR__
// isObjectDir returns if the entry is representing an object/
func (e metaCacheEntry) isObjectDir() bool {
return len(e.metadata) > 0 && strings.HasSuffix(e.name, slashSeparator)
}