Properly create .Bytecode-Viewer/libs if it doesn't exist

This commit is contained in:
Max Weber 2018-07-13 21:38:59 -06:00
parent 66aa6e7759
commit b19cb8f2fb

View file

@ -285,11 +285,11 @@ public class Boot {
} }
public static File libsDir() { public static File libsDir() {
File dir = new File(System.getProperty("user.home"), ".Bytecode-Viewer"); File dir = new File(System.getProperty("user.home"), ".Bytecode-Viewer/libs");
while (!dir.exists()) while (!dir.exists())
dir.mkdirs(); dir.mkdirs();
return new File(dir, "libs"); return dir;
} }
public static void setState(String s) { public static void setState(String s) {