MCPcopy
hub / github.com/rclone/rclone / EncryptFileName

Method EncryptFileName

backend/crypt/cipher.go:528–533  ·  view source on GitHub ↗

EncryptFileName encrypts a file path

(in string)

Source from the content-addressed store, hash-verified

526
527// EncryptFileName encrypts a file path
528func (c *Cipher) EncryptFileName(in string) string {
529 if c.mode == NameEncryptionOff {
530 return in + c.encryptedSuffix
531 }
532 return c.encryptFileName(in)
533}
534
535// EncryptDirName encrypts a directory path
536func (c *Cipher) EncryptDirName(in string) string {

Callers

nothing calls this directly

Calls 1

encryptFileNameMethod · 0.95

Tested by

no test coverage detected