Expand date filter by last execution overwrite

This commit is contained in:
2023-04-03 21:36:11 +02:00
parent 7ee51421e0
commit e3baae55d9
4 changed files with 56 additions and 12 deletions

View File

@@ -48,10 +48,10 @@ public class FileFilter {
}
private static boolean isNewerThanLastExecution(File pathName) {
if (Config.getInstance().isOnlyNewFiles()) {
return isNewer(pathName);
}
return true;
// return Config.getInstance().isOnlyNewFiles() && isNewer(pathName);
// if (Config.getInstance().isOnlyNewFiles()) {
// return isNewer(pathName);
// }
// return true;
return !Config.getInstance().isOnlyNewFiles() || isNewer(pathName);
}
}