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

Method SetNillableStoragePolicyFiles

ent/file_create.go:147–152  ·  view source on GitHub ↗

SetNillableStoragePolicyFiles sets the "storage_policy_files" field if the given value is not nil.

(i *int)

Source from the content-addressed store, hash-verified

145
146// SetNillableStoragePolicyFiles sets the "storage_policy_files" field if the given value is not nil.
147func (fc *FileCreate) SetNillableStoragePolicyFiles(i *int) *FileCreate {
148 if i != nil {
149 fc.SetStoragePolicyFiles(*i)
150 }
151 return fc
152}
153
154// SetOwner sets the "owner" edge to the User entity.
155func (fc *FileCreate) SetOwner(u *User) *FileCreate {

Callers

nothing calls this directly

Calls 1

SetStoragePolicyFilesMethod · 0.95

Tested by

no test coverage detected