When using system temp directory, store renderer binary archive in a 'permanent' directory to re-use on the next launch
This commit is contained in:
@@ -195,6 +195,12 @@ public class Configuration {
|
|||||||
this.workingDirectory.delete(); // hoho
|
this.workingDirectory.delete(); // hoho
|
||||||
this.workingDirectory.mkdir();
|
this.workingDirectory.mkdir();
|
||||||
this.workingDirectory.deleteOnExit();
|
this.workingDirectory.deleteOnExit();
|
||||||
|
|
||||||
|
// since there is no working directory and the client will be working in the system temp directory,
|
||||||
|
// we can also set up a 'permanent' directory for immutable files (like renderer binary)
|
||||||
|
|
||||||
|
this.storageDirectory = new File(this.workingDirectory.getParent() + File.separator + "sheepit_binary_cache");
|
||||||
|
this.storageDirectory.mkdir();
|
||||||
}
|
}
|
||||||
catch (IOException e) {
|
catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
Reference in New Issue
Block a user