From dff36eebe748a8d9bac16dc93e41025bf17157a6 Mon Sep 17 00:00:00 2001 From: Laurent Clouet Date: Tue, 18 Dec 2018 22:46:28 +0100 Subject: [PATCH] Bugfix: create all required sub directory for the cache dir --- src/com/sheepit/client/Configuration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/sheepit/client/Configuration.java b/src/com/sheepit/client/Configuration.java index 5eeaa2f..f44c181 100644 --- a/src/com/sheepit/client/Configuration.java +++ b/src/com/sheepit/client/Configuration.java @@ -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(); } }