From 86faa0253684c6d5c7d7d8ea82693cd764397c52 Mon Sep 17 00:00:00 2001 From: Torben Date: Wed, 8 Nov 2017 15:11:08 +0100 Subject: [PATCH] bug fix mkdir /.erc --- lib/steps.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/steps.js b/lib/steps.js index df4e4fc..9c83b2b 100644 --- a/lib/steps.js +++ b/lib/steps.js @@ -647,7 +647,11 @@ function extractMetadata(passon) { // create output dir to avoid later issues with access rights // (if directory is created a a side effect of the Bind below it belongs to root) - fse.mkdirSync(metaextract_output_dir); + try { + fse.mkdirSync(metaextract_output_dir); + } catch(e) { + debug('[%s] error creating metadata output directory at %s: %s', passon.id, metaextract_output_dir, e); + } // run metadata extraction container let create_options = Object.assign(