1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-26 01:38:57 -05:00

* 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

View File

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