From 5321095de59a4d540c8cbce11b083ca0d9947937 Mon Sep 17 00:00:00 2001 From: Kyle Upton Date: Thu, 5 Sep 2024 16:19:07 +0000 Subject: [PATCH] fix bucket dir detection --- backend/posix/posix.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }