MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / Copy

Method Copy

inventory/file.go:196–196  ·  view source on GitHub ↗

Copy copies a layer of file to its corresponding destination folder. dstMap is a map from src parent ID to dst parent Files.

(ctx context.Context, args *CopyParameter)

Source from the content-addressed store, hash-verified

194 UpsertMetadata(ctx context.Context, file *ent.File, data map[string]string, privateMask map[string]bool) error
195 // Copy copies a layer of file to its corresponding destination folder. dstMap is a map from src parent ID to dst parent Files.
196 Copy(ctx context.Context, args *CopyParameter) (map[int][]*ent.File, StorageDiff, error)
197 // Delete deletes a group of files (and related models) with given entity recycle option
198 Delete(ctx context.Context, files []*ent.File, options *types.EntityProps) ([]*ent.Entity, StorageDiff, error)
199 // StaleEntities returns stale entities of a given file. If ID is not provided, all entities

Callers 15

CaptchaRequiredFunction · 0.65
processChunkUploadFunction · 0.65
CreateMethod · 0.65
BlackHoleFunction · 0.65
GenerateMethod · 0.65
GenerateMethod · 0.65
GenerateMethod · 0.65
CopyTokenFunction · 0.65
marshalSimpleMethod · 0.65
unmarshalMethod · 0.65
DoMethod · 0.65
masterDownloadZipMethod · 0.65

Implementers 1

fileClientinventory/file.go

Calls

no outgoing calls

Tested by

no test coverage detected