Skip to content
This repository has been archived by the owner on Nov 1, 2024. It is now read-only.

Commit

Permalink
fix: quarto: ensure correct bucket path when searching for index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvatt committed Dec 15, 2023
1 parent 059bd92 commit 7cce5e5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/gcs/gcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func New(ctx context.Context, bucketName string, log *logrus.Entry) (*Client, er
}

func (c *Client) GetIndexHtmlPath(ctx context.Context, prefix string) (string, error) {
prefix, _ = strings.CutSuffix(prefix, "/")
_, err := c.client.Bucket(c.bucketName).Object(prefix + "/index.html").NewReader(ctx)
if err != nil {
objs := c.client.Bucket(c.bucketName).Objects(ctx, &storage.Query{Prefix: prefix + "/"})
Expand Down

0 comments on commit 7cce5e5

Please sign in to comment.