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

Method SetNillableStoragePolicyFiles

ent/file_update.go:1040–1045  ·  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

1038
1039// SetNillableStoragePolicyFiles sets the "storage_policy_files" field if the given value is not nil.
1040func (fuo *FileUpdateOne) SetNillableStoragePolicyFiles(i *int) *FileUpdateOne {
1041 if i != nil {
1042 fuo.SetStoragePolicyFiles(*i)
1043 }
1044 return fuo
1045}
1046
1047// ClearStoragePolicyFiles clears the value of the "storage_policy_files" field.
1048func (fuo *FileUpdateOne) ClearStoragePolicyFiles() *FileUpdateOne {

Callers

nothing calls this directly

Calls 1

SetStoragePolicyFilesMethod · 0.95

Tested by

no test coverage detected