dev add cold storage
Test Workflow / test (push) Has been cancelled

This commit is contained in:
2026-04-23 12:56:13 +07:00
parent 2f167a0150
commit e0ecd91ed0
@@ -137,7 +137,8 @@ public class FileSimilarityService {
// File newFile = new File(path);
// if (existingFile.length() == newFile.length()) {
if (calculateFileHash(file.getFilePath(), true).equals(hash)) {
if (!file.getStatus().name().equals(FileStatus.TEMP.name()) &&
calculateFileHash(file.getFilePath(), true).equals(hash)) {
return file;
}
// }