Skip to content

Commit

Permalink
Skipping downloading the duplicate files and continue downloading the…
Browse files Browse the repository at this point in the history
… rest.
  • Loading branch information
elkezza committed Nov 26, 2024
1 parent efae865 commit 8742a7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/storage/sos/object.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ func (c *Client) DownloadFiles(ctx context.Context, config *DownloadConfig) erro
}

if _, err := os.Stat(dst); err == nil && !config.Overwrite {
return fmt.Errorf("file %q already exists, use flag `-f` to overwrite", dst)
fmt.Printf("error: file %q already exists, use flag `-f` to overwrite\n", dst)
continue
}

if err := c.DownloadFile(ctx, config.Bucket, object, dst); err != nil {
Expand Down

0 comments on commit 8742a7a

Please sign in to comment.