From cbb50a72a1b75be7c59a2686416389695534d24b Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Thu, 21 Feb 2013 08:00:42 +0000 Subject: [PATCH] * exclude existing files from rename map --- source/net/sourceforge/filebot/ui/rename/RenameAction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/ui/rename/RenameAction.java b/source/net/sourceforge/filebot/ui/rename/RenameAction.java index e6f79bbc..1d10b926 100644 --- a/source/net/sourceforge/filebot/ui/rename/RenameAction.java +++ b/source/net/sourceforge/filebot/ui/rename/RenameAction.java @@ -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