@@ -137,7 +137,8 @@ public class FileSimilarityService {
|
|||||||
// File newFile = new File(path);
|
// File newFile = new File(path);
|
||||||
|
|
||||||
// if (existingFile.length() == newFile.length()) {
|
// 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;
|
return file;
|
||||||
}
|
}
|
||||||
// }
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user