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

Method SetFileNameRule

ent/storagepolicy_create.go:732–735  ·  view source on GitHub ↗

SetFileNameRule sets the "file_name_rule" field.

(v string)

Source from the content-addressed store, hash-verified

730
731// SetFileNameRule sets the "file_name_rule" field.
732func (u *StoragePolicyUpsert) SetFileNameRule(v string) *StoragePolicyUpsert {
733 u.Set(storagepolicy.FieldFileNameRule, v)
734 return u
735}
736
737// UpdateFileNameRule sets the "file_name_rule" field to the value that was provided on create.
738func (u *StoragePolicyUpsert) UpdateFileNameRule() *StoragePolicyUpsert {

Callers

nothing calls this directly

Calls 1

SetMethod · 0.65

Tested by

no test coverage detected