Skip to content

Commit

Permalink
filter skipprefix directory from ListBucketsAndOwners
Browse files Browse the repository at this point in the history
  • Loading branch information
rkm committed Dec 4, 2024
1 parent c380053 commit 90ce4e5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions backend/posix/posix.go
Original file line number Diff line number Diff line change
Expand Up @@ -4067,6 +4067,11 @@ func (p *Posix) ListBucketsAndOwners(ctx context.Context) (buckets []s3response.
continue
}

if containsprefix(entry.Name(), p.skipprefix) {
// skip directories that match the skip prefix
continue
}

fi, err := entry.Info()
if err != nil {
continue
Expand Down

0 comments on commit 90ce4e5

Please sign in to comment.