fix bucket dir detection

This commit is contained in:
Kyle Upton
2024-09-05 16:19:07 +00:00
parent 1adf3d9565
commit 5321095de5

View File

@@ -1571,7 +1571,7 @@ func (p *Posix) removeParents(bucket, object string) error {
for {
parent := filepath.Dir(objPath)
if parent == string(filepath.Separator) {
if parent == "." {
// stop removing parents if we hit the bucket directory.
break
}