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

Method AddFileIDs

ent/mutation.go:13406–13413  ·  view source on GitHub ↗

AddFileIDs adds the "files" edge to the File entity by ids.

(ids ...int)

Source from the content-addressed store, hash-verified

13404
13405// AddFileIDs adds the "files" edge to the File entity by ids.
13406func (m *StoragePolicyMutation) AddFileIDs(ids ...int) {
13407 if m.files == nil {
13408 m.files = make(map[int]struct{})
13409 }
13410 for i := range ids {
13411 m.files[ids[i]] = struct{}{}
13412 }
13413}
13414
13415// ClearFiles clears the "files" edge to the File entity.
13416func (m *StoragePolicyMutation) ClearFiles() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected