MCPcopy Index your code
hub / github.com/OpenListTeam/OpenList / encryptPath

Method encryptPath

drivers/crypt/util.go:23–29  ·  view source on GitHub ↗
(path string, isFolder bool)

Source from the content-addressed store, hash-verified

21}
22
23func (d *Crypt) encryptPath(path string, isFolder bool) string {
24 if isFolder {
25 return d.cipher.EncryptDirName(path)
26 }
27 dir, fileName := filepath.Split(path)
28 return stdpath.Join(d.cipher.EncryptDirName(dir), d.cipher.EncryptFileName(fileName))
29}

Callers 1

GetMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected