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

Method SetFile

ent/metadata_create.go:101–103  ·  view source on GitHub ↗

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

(f *File)

Source from the content-addressed store, hash-verified

99
100// SetFile sets the "file" edge to the File entity.
101func (mc *MetadataCreate) SetFile(f *File) *MetadataCreate {
102 return mc.SetFileID(f.ID)
103}
104
105// Mutation returns the MetadataMutation object of the builder.
106func (mc *MetadataCreate) Mutation() *MetadataMutation {

Callers

nothing calls this directly

Calls 1

SetFileIDMethod · 0.95

Tested by

no test coverage detected