try {
xwtDir = new java.io.File(xwtDirName);
if (!xwtDir.mkdirs()) xwtDir = null;
+ try {
+ cacheDir = new java.io.File(xwtDirName + java.io.File.separatorChar + "cache");
+ if (!cacheDir.mkdirs()) cacheDir = null;
+ } catch (Exception e) {
+ Log.warn(LocalStorage.class, "unable to create cache directory " +
+ xwtDirName + java.io.File.separatorChar + "cache");
+ }
} catch (Exception e) {
- Log.info(LocalStorage.class, "unable to create xwt directory " + xwtDirName);
- }
- try {
- cacheDir = new java.io.File(xwtDirName + java.io.File.separatorChar + "cache");
- if (!cacheDir.mkdirs()) cacheDir = null;
- } catch (Exception e) {
- Log.info(LocalStorage.class, "unable to create cache directory " + xwtDirName + java.io.File.separatorChar + "cache");
+ Log.warn(LocalStorage.class, "unable to create xwt directory " + xwtDirName);
}
}
-
// FEATURE: we ought to be able to do stuff like sha1-checking and date checking on cached resources
public static class Cache {