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

Method SetFile

ent/share_update.go:215–217  ·  view source on GitHub ↗

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

(f *File)

Source from the content-addressed store, hash-verified

213
214// SetFile sets the "file" edge to the File entity.
215func (su *ShareUpdate) SetFile(f *File) *ShareUpdate {
216 return su.SetFileID(f.ID)
217}
218
219// Mutation returns the ShareMutation object of the builder.
220func (su *ShareUpdate) Mutation() *ShareMutation {

Callers

nothing calls this directly

Calls 1

SetFileIDMethod · 0.95

Tested by

no test coverage detected