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

Method SetFileNameRule

ent/storagepolicy_create.go:1048–1052  ·  view source on GitHub ↗

SetFileNameRule sets the "file_name_rule" field.

(v string)

Source from the content-addressed store, hash-verified

1046
1047// SetFileNameRule sets the "file_name_rule" field.
1048func (u *StoragePolicyUpsertOne) SetFileNameRule(v string) *StoragePolicyUpsertOne {
1049 return u.Update(func(s *StoragePolicyUpsert) {
1050 s.SetFileNameRule(v)
1051 })
1052}
1053
1054// UpdateFileNameRule sets the "file_name_rule" field to the value that was provided on create.
1055func (u *StoragePolicyUpsertOne) UpdateFileNameRule() *StoragePolicyUpsertOne {

Callers

nothing calls this directly

Calls 1

UpdateMethod · 0.95

Tested by

no test coverage detected