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

Method SetFile

ent/entity.go:299–302  ·  view source on GitHub ↗

SetFile manually set the edge as loaded state.

(v []*File)

Source from the content-addressed store, hash-verified

297
298// SetFile manually set the edge as loaded state.
299func (e *Entity) SetFile(v []*File) {
300 e.Edges.File = v
301 e.Edges.loadedTypes[0] = true
302}
303
304// SetUser manually set the edge as loaded state.
305func (e *Entity) SetUser(v *User) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected