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

Method SetFiles

ent/user.go:399–402  ·  view source on GitHub ↗

SetFiles manually set the edge as loaded state.

(v []*File)

Source from the content-addressed store, hash-verified

397
398// SetFiles manually set the edge as loaded state.
399func (e *User) SetFiles(v []*File) {
400 e.Edges.Files = v
401 e.Edges.loadedTypes[1] = true
402}
403
404// SetDavAccounts manually set the edge as loaded state.
405func (e *User) SetDavAccounts(v []*DavAccount) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected