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

Method SetFile

ent/share_create.go:180–182  ·  view source on GitHub ↗

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

(f *File)

Source from the content-addressed store, hash-verified

178
179// SetFile sets the "file" edge to the File entity.
180func (sc *ShareCreate) SetFile(f *File) *ShareCreate {
181 return sc.SetFileID(f.ID)
182}
183
184// Mutation returns the ShareMutation object of the builder.
185func (sc *ShareCreate) Mutation() *ShareMutation {

Callers

nothing calls this directly

Calls 1

SetFileIDMethod · 0.95

Tested by

no test coverage detected