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

Method SetFile

ent/metadata_update.go:115–117  ·  view source on GitHub ↗

SetFile sets the "file" edge to the File entity.

(f *File)

Source from the content-addressed store, hash-verified

113
114// SetFile sets the "file" edge to the File entity.
115func (mu *MetadataUpdate) SetFile(f *File) *MetadataUpdate {
116 return mu.SetFileID(f.ID)
117}
118
119// Mutation returns the MetadataMutation object of the builder.
120func (mu *MetadataUpdate) Mutation() *MetadataMutation {

Callers

nothing calls this directly

Calls 1

SetFileIDMethod · 0.95

Tested by

no test coverage detected