(path string, isFolder bool)
| 21 | } |
| 22 | |
| 23 | func (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 | } |