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

Method SetFile

ent/directlink_update.go:376–378  ·  view source on GitHub ↗

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

(f *File)

Source from the content-addressed store, hash-verified

374
375// SetFile sets the "file" edge to the File entity.
376func (dluo *DirectLinkUpdateOne) SetFile(f *File) *DirectLinkUpdateOne {
377 return dluo.SetFileID(f.ID)
378}
379
380// Mutation returns the DirectLinkMutation object of the builder.
381func (dluo *DirectLinkUpdateOne) Mutation() *DirectLinkMutation {

Callers

nothing calls this directly

Calls 1

SetFileIDMethod · 0.95

Tested by

no test coverage detected