From 1c3af8506cde4686177985f127e485db8f7feeef Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Mon, 17 Feb 2014 11:44:59 +0000 Subject: [PATCH] * fix "Can't Rename Folders" bug @see http://www.filebot.net/forums/viewtopic.php?f=8&t=1321 --- 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 db5992a8..d71c8ae3 100644 --- a/source/net/sourceforge/filebot/ui/rename/RenameAction.java +++ b/source/net/sourceforge/filebot/ui/rename/RenameAction.java @@ -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