diff --git a/pkg/storage/s3/s3.go b/pkg/storage/s3/s3.go index ab1c236..f4c9672 100644 --- a/pkg/storage/s3/s3.go +++ b/pkg/storage/s3/s3.go @@ -75,6 +75,8 @@ func (s *S3) Pull(ctx context.Context, source, target string, logger *log.Entry) bucket, path := s.url.Hostname(), path.Join(s.url.Path, source) + path = strings.TrimPrefix(path, "/") + // Create a downloader with the session and default options downloader := manager.NewDownloader(client)