mirror of
https://github.com/versity/versitygw.git
synced 2026-06-02 09:06:19 +00:00
fix bucket dir detection
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user