Update FileUtils.java

fix: Error when checking files & always checking "/default/data" instead of folder
This commit is contained in:
zrll_ 2022-05-20 17:38:32 +08:00 committed by Melledy
parent e2cb56ee28
commit b60596f41f

View File

@ -97,7 +97,7 @@ public final class FileUtils {
} }
} catch (Exception e) { } catch (Exception e) {
// Eclipse puts resources in its bin folder // 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) { if (!f.exists() || f.listFiles().length == 0) {
return null; return null;