MCPcopy Create free account
hub / github.com/peak/s5cmd / processSingleObject

Method processSingleObject

command/cat.go:151–155  ·  view source on GitHub ↗
(ctx context.Context, client *storage.S3, url *url.URL)

Source from the content-addressed store, hash-verified

149}
150
151func (c Cat) processSingleObject(ctx context.Context, client *storage.S3, url *url.URL) error {
152 buf := orderedwriter.New(os.Stdout)
153 _, err := client.Get(ctx, url, buf, c.concurrency, c.partSize)
154 return err
155}
156
157func validateCatCommand(c *cli.Context) error {
158 if c.Args().Len() != 1 {

Callers 2

RunMethod · 0.95
processObjectsMethod · 0.95

Calls 2

NewFunction · 0.92
GetMethod · 0.45

Tested by

no test coverage detected