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

Method RemoveFiles

ent/storagepolicy_update.go:1062–1068  ·  view source on GitHub ↗

RemoveFiles removes "files" edges to File entities.

(f ...*File)

Source from the content-addressed store, hash-verified

1060
1061// RemoveFiles removes "files" edges to File entities.
1062func (spuo *StoragePolicyUpdateOne) RemoveFiles(f ...*File) *StoragePolicyUpdateOne {
1063 ids := make([]int, len(f))
1064 for i := range f {
1065 ids[i] = f[i].ID
1066 }
1067 return spuo.RemoveFileIDs(ids...)
1068}
1069
1070// ClearEntities clears all "entities" edges to the Entity entity.
1071func (spuo *StoragePolicyUpdateOne) ClearEntities() *StoragePolicyUpdateOne {

Callers

nothing calls this directly

Calls 1

RemoveFileIDsMethod · 0.95

Tested by

no test coverage detected