@@ -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;
|
||||
}
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user