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

Method RemoveFileIDs

ent/mutation.go:13426–13434  ·  view source on GitHub ↗

RemoveFileIDs removes the "files" edge to the File entity by IDs.

(ids ...int)

Source from the content-addressed store, hash-verified

13424
13425// RemoveFileIDs removes the "files" edge to the File entity by IDs.
13426func (m *StoragePolicyMutation) RemoveFileIDs(ids ...int) {
13427 if m.removedfiles == nil {
13428 m.removedfiles = make(map[int]struct{})
13429 }
13430 for i := range ids {
13431 delete(m.files, ids[i])
13432 m.removedfiles[ids[i]] = struct{}{}
13433 }
13434}
13435
13436// RemovedFiles returns the removed IDs of the "files" edge to the File entity.
13437func (m *StoragePolicyMutation) RemovedFilesIDs() (ids []int) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected