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:
parent
d15a250644
commit
d194ebee73
@ -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());
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user