Skip to content

Commit

Permalink
Merge pull request #785 from digitalglue-software/fix/delete-object-r…
Browse files Browse the repository at this point in the history
…emove-parents

fix: DeleteObject not working as expected when using `--bucketlinks` (#784)
  • Loading branch information
benmcclelland authored Sep 6, 2024
2 parents 1adf3d9 + 5321095 commit 66a7879
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 66a7879

Please sign in to comment.