MCPcopy
hub / github.com/pocketbase/pocketbase / Copy

Method Copy

tools/filesystem/filesystem.go:173–175  ·  view source on GitHub ↗

Copy copies the file stored at srcKey to dstKey. If srcKey file doesn't exist, it returns ErrNotFound. If dstKey file already exists, it is overwritten.

(srcKey, dstKey string)

Source from the content-addressed store, hash-verified

171//
172// If dstKey file already exists, it is overwritten.
173func (s *System) Copy(srcKey, dstKey string) error {
174 return s.bucket.Copy(s.ctx, dstKey, srcKey)
175}
176
177// List returns a flat list with info for all files under the specified prefix.
178func (s *System) List(prefix string) ([]*blob.ListObject, error) {

Callers

nothing calls this directly

Calls 1

CopyMethod · 0.65

Tested by

no test coverage detected