Skip to content

Commit

Permalink
🎨 Just list the S3 bucket configured siyuan-note/siyuan#13682
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jan 1, 2025
1 parent 1b3b69c commit eb8ad43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cloud/s3.go
Original file line number Diff line number Diff line change
Expand Up @@ -426,6 +426,10 @@ func (s3 *S3) listRepos() (ret []*Repo, err error) {

ret = []*Repo{}
for _, bucket := range output.Buckets {
if *bucket.Name != s3.S3.Bucket {
continue
}

ret = append(ret, &Repo{
Name: *bucket.Name,
Size: 0,
Expand Down

0 comments on commit eb8ad43

Please sign in to comment.