diff --git a/backend/posix/posix.go b/backend/posix/posix.go index 11aaef85..37eb7eac 100644 --- a/backend/posix/posix.go +++ b/backend/posix/posix.go @@ -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 }