* 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
1 changed files with 1 additions and 1 deletions

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