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:
parent
8e68bb3e60
commit
1c3af8506c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user