Commit eb54dcec authored by zrll_'s avatar zrll_ Committed by Melledy
Browse files

Update FileUtils.java

fix: Error when checking files & always checking "/default/data" instead of folder
parent 92f1a93b
......@@ -97,7 +97,7 @@ public final class FileUtils {
}
} catch (Exception e) {
// Eclipse puts resources in its bin folder
File f = new File(jarPath + "defaults/data/");
File f = new File(System.getProperty("user.dir") + folder);
if (!f.exists() || f.listFiles().length == 0) {
return null;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment