Skip to content

Commit

Permalink
fix bucket dir detection
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleaupton committed Sep 5, 2024
1 parent 1adf3d9 commit 5321095
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/posix/posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5321095

Please sign in to comment.