1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-23 08:18:52 -05:00

* exclude existing files from rename map

This commit is contained in:
Reinhard Pointner 2013-02-21 08:00:42 +00:00
parent c58b3df754
commit cbb50a72a1

View File

@ -169,7 +169,7 @@ class RenameAction extends AbstractAction {
if (destinationSet.contains(destination))
throw new IllegalArgumentException("Conflict detected: " + mapping.getValue().getPath());
if (destination.exists() && !source.equals(destination))
if (destination.exists())
throw new IllegalArgumentException("File already exists: " + mapping.getValue().getPath());
// use original mapping values