Merge pull request #785 from digitalglue-software/fix/delete-object-remove-parents

fix: DeleteObject not working as expected when using `--bucketlinks` (#784)
This commit is contained in:
Ben McClelland
2024-09-06 15:12:30 -07:00
committed by GitHub
+1 -1
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
}