if a cache_dir is given as command line argument and it does not exist it will try to create it with it parents
This commit is contained in:
@@ -115,6 +115,7 @@ public class Worker {
|
|||||||
|
|
||||||
if (cache_dir != null) {
|
if (cache_dir != null) {
|
||||||
File a_dir = new File(cache_dir);
|
File a_dir = new File(cache_dir);
|
||||||
|
a_dir.mkdirs();
|
||||||
if (a_dir.isDirectory() && a_dir.canWrite()) {
|
if (a_dir.isDirectory() && a_dir.canWrite()) {
|
||||||
config.setCacheDir(a_dir);
|
config.setCacheDir(a_dir);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user