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

Method RemoveFiles

ent/storagepolicy_update.go:378–384  ·  view source on GitHub ↗

RemoveFiles removes "files" edges to File entities.

(f ...*File)

Source from the content-addressed store, hash-verified

376
377// RemoveFiles removes "files" edges to File entities.
378func (spu *StoragePolicyUpdate) RemoveFiles(f ...*File) *StoragePolicyUpdate {
379 ids := make([]int, len(f))
380 for i := range f {
381 ids[i] = f[i].ID
382 }
383 return spu.RemoveFileIDs(ids...)
384}
385
386// ClearEntities clears all "entities" edges to the Entity entity.
387func (spu *StoragePolicyUpdate) ClearEntities() *StoragePolicyUpdate {

Callers

nothing calls this directly

Calls 1

RemoveFileIDsMethod · 0.95

Tested by

no test coverage detected