MCPcopy Create free account
hub / github.com/Scalingo/cli / validateFiles

Method validateFiles

apps/run.go:385–393  ·  view source on GitHub ↗
(ctx context.Context, files []string)

Source from the content-addressed store, hash-verified

383}
384
385func (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
395func (runCtx *runContext) uploadFiles(ctx context.Context, endpoint string, files []string) error {
396 for _, file := range files {

Callers 1

RunFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected