Open
Description
Some screens still use an encrypted path for an encrypted folder. In the user interface, only the decrypted path should be used. Encrypted path is not meaningful for the user and the UI.
For instance, instead of the path “Abc/IrsB2QWwzF4i6neM8kcT6A==”, the path “Abc/my_folder,” should be displayed.
public String getDecryptedPath(OCFile file) {
FileEntity entity = fileDao.getFileById(file.getFileId());
if (entity == null) {
return file.getDecryptedRemotePath();
}
return entity.getPathDecrypted();
}