1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-04 16:35:08 -05:00

If MOVE is used, then don't Preserve Last Modified because source / destination file is the same, so time stamp can't be transferred from now non-existing source file

This commit is contained in:
Reinhard Pointner 2019-01-08 11:03:18 +07:00
parent d15a250644
commit d194ebee73

View File

@ -686,7 +686,7 @@ public class CmdlineOperations implements CmdlineInterface {
// preserve Last Modified date
log.forEach((source, destination) -> {
if (destination != null && source.exists()) {
if (destination != null && destination.isFile() && source.exists()) {
destination.setLastModified(source.lastModified());
}
});