MCPcopy
hub / github.com/cortexlabs/cortex / CreateEmptyS3File

Method CreateEmptyS3File

pkg/lib/aws/s3.go:447–449  ·  view source on GitHub ↗
(bucket string, key string)

Source from the content-addressed store, hash-verified

445}
446
447func (c *Client) CreateEmptyS3File(bucket string, key string) error {
448 return c.UploadReaderToS3(bytes.NewReader(nil), bucket, key)
449}
450
451func (c *Client) UploadDirToS3(localDirPath string, bucket string, s3Dir string, ignoreFns ...files.IgnoreFn) error {
452 localRelPaths, err := files.ListDirRecursive(localDirPath, true, ignoreFns...)

Callers

nothing calls this directly

Calls 1

UploadReaderToS3Method · 0.95

Tested by

no test coverage detected