Skip to content

Commit

Permalink
检查文件是否存在
Browse files Browse the repository at this point in the history
  • Loading branch information
ronghao committed May 20, 2019
1 parent c34fa66 commit 18e3768
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ public CacheUtilConfig build() {
} else {
File file = new File(ACache.getDiskCacheDir(context));
File cacheFile = new File(file.getParent(), "cachemanage/");
if (!cacheFile.exists()) {
cacheFile.mkdirs();
}
this.aCache = ACache.get(cacheFile);
}
}
Expand Down

0 comments on commit 18e3768

Please sign in to comment.