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

Method Copy

tools/filesystem/blob/driver.go:86–86  ·  view source on GitHub ↗

Copy copies the object associated with srcKey to dstKey. If the source object does not exist, Copy must return an ErrNotFound. If the destination object already exists, it should be overwritten.

(ctx context.Context, dstKey, srcKey string)

Source from the content-addressed store, hash-verified

84 //
85 // If the destination object already exists, it should be overwritten.
86 Copy(ctx context.Context, dstKey, srcKey string) error
87
88 // Delete deletes the object associated with key. If the specified object does
89 // not exist, Delete must return an ErrNotFound.

Callers 15

TestFileSystemCopyFunction · 0.65
CopyMethod · 0.65
NewFileFromURLFunction · 0.65
CopyMethod · 0.65
TestDriverCopyEscapingFunction · 0.65
CopyMethod · 0.65
extractFileFunction · 0.65
zipAddFSFunction · 0.65
ReadFromMethod · 0.65
StreamMethod · 0.65
RestoreBackupMethod · 0.65
JoinValidationErrorsFunction · 0.65

Implementers 2

drivertools/filesystem/internal/s3blob/s3blo
drivertools/filesystem/internal/fileblob/fil

Calls

no outgoing calls

Tested by 4

TestFileSystemCopyFunction · 0.52
TestDriverCopyEscapingFunction · 0.52
TestBackupUploadFunction · 0.52
TestRecordUpsertLoadFunction · 0.52