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

Method SetFile

ent/directlink_update.go:129–131  ·  view source on GitHub ↗

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

(f *File)

Source from the content-addressed store, hash-verified

127
128// SetFile sets the "file" edge to the File entity.
129func (dlu *DirectLinkUpdate) SetFile(f *File) *DirectLinkUpdate {
130 return dlu.SetFileID(f.ID)
131}
132
133// Mutation returns the DirectLinkMutation object of the builder.
134func (dlu *DirectLinkUpdate) Mutation() *DirectLinkMutation {

Callers

nothing calls this directly

Calls 1

SetFileIDMethod · 0.95

Tested by

no test coverage detected