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

Method SetFile

ent/metadata.go:208–211  ·  view source on GitHub ↗

SetFile manually set the edge as loaded state.

(v *File)

Source from the content-addressed store, hash-verified

206
207// SetFile manually set the edge as loaded state.
208func (e *Metadata) SetFile(v *File) {
209 e.Edges.File = v
210 e.Edges.loadedTypes[0] = true
211}
212
213// MetadataSlice is a parsable slice of Metadata.
214type MetadataSlice []*Metadata

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected