Commit cb1d1b2b by amateur

1

1 parent 05baa3c2
...@@ -32,6 +32,15 @@ public class FileUtils { ...@@ -32,6 +32,15 @@ public class FileUtils {
return CtxUtils.getApplication().getFilesDir(); return CtxUtils.getApplication().getFilesDir();
} }
// 获取热跟新目录
public static File getHotDir() {
File hot = new File(getRootDir(), "Hot");
if (!hot.exists()) {
hot.mkdirs();
}
return hot;
}
public static File getRootCacheDir() { public static File getRootCacheDir() {
return CtxUtils.getApplication().getCacheDir(); return CtxUtils.getApplication().getCacheDir();
} }
......
...@@ -23,7 +23,7 @@ public class WebVersionUtils { ...@@ -23,7 +23,7 @@ public class WebVersionUtils {
} }
public static File getDistDir(String version) { public static File getDistDir(String version) {
File verisonDir = new File(FileUtils.getRootDir(), version); File verisonDir = new File(FileUtils.getHotDir(), version);
File dist = new File(verisonDir, "dist"); File dist = new File(verisonDir, "dist");
if (!dist.exists()) { if (!dist.exists()) {
dist.mkdirs(); dist.mkdirs();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!