MCPcopy
hub / github.com/rclone/rclone / setEncryptedSuffix

Method setEncryptedSuffix

backend/crypt/cipher.go:206–216  ·  view source on GitHub ↗

setEncryptedSuffix set suffix, or an empty string

(suffix string)

Source from the content-addressed store, hash-verified

204
205// setEncryptedSuffix set suffix, or an empty string
206func (c *Cipher) setEncryptedSuffix(suffix string) {
207 if strings.EqualFold(suffix, "none") {
208 c.encryptedSuffix = ""
209 return
210 }
211 if !strings.HasPrefix(suffix, ".") {
212 fs.Errorf(nil, "crypt: bad suffix: %v", ErrorSuffixMissingDot)
213 suffix = "." + suffix
214 }
215 c.encryptedSuffix = suffix
216}
217
218// Call to set bad block pass through
219func (c *Cipher) setPassBadBlocks(passBadBlocks bool) {

Callers 3

newCipherForConfigFunction · 0.80

Calls 1

ErrorfFunction · 0.92

Tested by 2