* fix "Can't Rename Folders" bug

@see http://www.filebot.net/forums/viewtopic.php?f=8&t=1321
This commit is contained in:
Reinhard Pointner 2014-02-17 11:44:59 +00:00
parent 8e68bb3e60
commit 1c3af8506c
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ class RenameAction extends AbstractAction {
if (destination.exists() && !resolveDestination(mapping.getKey(), mapping.getValue(), false).equals(mapping.getKey()))
throw new IllegalArgumentException("File already exists: " + mapping.getValue().getPath());
if (getExtension(destination) == null)
if (getExtension(destination) == null && destination.isFile())
throw new IllegalArgumentException("Missing extension: " + mapping.getValue().getPath());
// use original mapping values