Regression: if frame-path does not exist
https://github.com/iBotPeaches/Apktool/blob/3ec4f360ab09782421e47d16f88a95dd7f7d2058/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java#L793

Ten lines further down the directory is created if it does not exist already.
diff --git a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java
index 05c8e840..76aea94f 100644
--- a/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java
+++ b/brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java
@@ -790,7 +790,7 @@ final public class AndrolibResources {
 
         File dir = new File(path);
 
-        if (!dir.isDirectory()) {
+        if (!dir.isDirectory() && dir.isFile()) {
             throw new AndrolibException("--frame-path is set to a file, not a directory.");
         }
 
['brut.apktool/apktool-lib/src/main/java/brut/androlib/res/AndrolibResources.java']