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

Method AddFiles

ent/storagepolicy_update.go:995–1001  ·  view source on GitHub ↗

AddFiles adds the "files" edges to the File entity.

(f ...*File)

Source from the content-addressed store, hash-verified

993
994// AddFiles adds the "files" edges to the File entity.
995func (spuo *StoragePolicyUpdateOne) AddFiles(f ...*File) *StoragePolicyUpdateOne {
996 ids := make([]int, len(f))
997 for i := range f {
998 ids[i] = f[i].ID
999 }
1000 return spuo.AddFileIDs(ids...)
1001}
1002
1003// AddEntityIDs adds the "entities" edge to the Entity entity by IDs.
1004func (spuo *StoragePolicyUpdateOne) AddEntityIDs(ids ...int) *StoragePolicyUpdateOne {

Callers

nothing calls this directly

Calls 1

AddFileIDsMethod · 0.95

Tested by

no test coverage detected