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

Method RemoveFile

ent/entity_update.go:747–753  ·  view source on GitHub ↗

RemoveFile removes "file" edges to File entities.

(f ...*File)

Source from the content-addressed store, hash-verified

745
746// RemoveFile removes "file" edges to File entities.
747func (euo *EntityUpdateOne) RemoveFile(f ...*File) *EntityUpdateOne {
748 ids := make([]int, len(f))
749 for i := range f {
750 ids[i] = f[i].ID
751 }
752 return euo.RemoveFileIDs(ids...)
753}
754
755// ClearUser clears the "user" edge to the User entity.
756func (euo *EntityUpdateOne) ClearUser() *EntityUpdateOne {

Callers

nothing calls this directly

Calls 1

RemoveFileIDsMethod · 0.95

Tested by

no test coverage detected