Bugfix: create all required sub directory for the cache dir

This commit is contained in:
Laurent Clouet
2018-12-18 22:46:28 +01:00
parent ce9c4fca5b
commit dff36eebe7

View File

@@ -225,8 +225,8 @@ public class Configuration {
this.userHasSpecifiedACacheDir = true;
this.workingDirectory = new File(cache_dir_.getAbsolutePath() + File.separator + "sheepit");
this.storageDirectory = new File(cache_dir_.getAbsolutePath() + File.separator + "sheepit_binary_cache");
this.workingDirectory.mkdir();
this.storageDirectory.mkdir();
this.workingDirectory.mkdirs();
this.storageDirectory.mkdirs();
}
}