Skip to content

Commit

Permalink
add missing function
Browse files Browse the repository at this point in the history
Signed-off-by: alperozturk <[email protected]>
  • Loading branch information
alperozturk96 committed Jan 13, 2025
1 parent 00c19ab commit f556648
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,19 @@ public OCFile findDuplicatedFile(OCFile parentFolder, ServerFileInterface newFil
return duplicatedFile;
}

public String getFileNameBasedOnEncryptionStatus(OCFile file) {
FileEntity entity = fileDao.getFileById(file.getFileId());
if (entity == null) {
return file.getFileName();
}

if (file.isEncrypted()) {
return entity.getEncryptedName();
} else {
return entity.getName();
}
}

public List<OCFile> getFolderImages(OCFile folder, boolean onlyOnDevice) {
List<OCFile> imageList = new ArrayList<>();

Expand Down

0 comments on commit f556648

Please sign in to comment.