From d189b9aafb88198fb7ea7317be6b4d329d36e770 Mon Sep 17 00:00:00 2001 From: Louis Chatriot Date: Tue, 14 May 2013 00:29:25 +0200 Subject: [PATCH] Bugfix in ensureDirExists --- lib/customUtils.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/customUtils.js b/lib/customUtils.js index 84fac7a..2e34170 100644 --- a/lib/customUtils.js +++ b/lib/customUtils.js @@ -13,7 +13,7 @@ function ensureDirectoryExists (dir, cb) { var callback = cb || function () {} ; - childProcess.exec('mkdir -p ' + dir, function (err) { return callback(err); }); + childProcess.exec('mkdir -p ' + dir.replace(/ /g, '\\ '), function (err) { return callback(err); }); } diff --git a/package.json b/package.json index 72c4c43..26e8083 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nedb", - "version": "0.0.6", + "version": "0.0.7", "author": { "name": "tldr.io", "email": "hello@tldr.io"