(ctx context.Context, files []string)
| 383 | } |
| 384 | |
| 385 | func (runCtx *runContext) validateFiles(ctx context.Context, files []string) error { |
| 386 | for _, file := range files { |
| 387 | _, err := os.Stat(file) |
| 388 | if err != nil { |
| 389 | return errors.Newf(ctx, "file %s does not exist", file) |
| 390 | } |
| 391 | } |
| 392 | return nil |
| 393 | } |
| 394 | |
| 395 | func (runCtx *runContext) uploadFiles(ctx context.Context, endpoint string, files []string) error { |
| 396 | for _, file := range files { |