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

Method SetFile

ent/directlink_create.go:93–95  ·  view source on GitHub ↗

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

(f *File)

Source from the content-addressed store, hash-verified

91
92// SetFile sets the "file" edge to the File entity.
93func (dlc *DirectLinkCreate) SetFile(f *File) *DirectLinkCreate {
94 return dlc.SetFileID(f.ID)
95}
96
97// Mutation returns the DirectLinkMutation object of the builder.
98func (dlc *DirectLinkCreate) Mutation() *DirectLinkMutation {

Callers

nothing calls this directly

Calls 1

SetFileIDMethod · 0.95

Tested by

no test coverage detected