From 624e8d4cd3f2fdde4d00c945329b2c17e5162d94 Mon Sep 17 00:00:00 2001 From: Rolf Aretz Lap Date: Sat, 26 Nov 2016 20:42:45 +0100 Subject: [PATCH] if a cache_dir is given as command line argument and it does not exist it will try to create it with it parents --- src/com/sheepit/client/standalone/Worker.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/sheepit/client/standalone/Worker.java b/src/com/sheepit/client/standalone/Worker.java index 710c36c..5994905 100644 --- a/src/com/sheepit/client/standalone/Worker.java +++ b/src/com/sheepit/client/standalone/Worker.java @@ -115,6 +115,7 @@ public class Worker { if (cache_dir != null) { File a_dir = new File(cache_dir); + a_dir.mkdirs(); if (a_dir.isDirectory() && a_dir.canWrite()) { config.setCacheDir(a_dir); }