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

Method SetFile

ent/metadata_update.go:342–344  ·  view source on GitHub ↗

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

(f *File)

Source from the content-addressed store, hash-verified

340
341// SetFile sets the "file" edge to the File entity.
342func (muo *MetadataUpdateOne) SetFile(f *File) *MetadataUpdateOne {
343 return muo.SetFileID(f.ID)
344}
345
346// Mutation returns the MetadataMutation object of the builder.
347func (muo *MetadataUpdateOne) Mutation() *MetadataMutation {

Callers

nothing calls this directly

Calls 1

SetFileIDMethod · 0.95

Tested by

no test coverage detected