diff --git a/storage/file.js b/storage/file.js index 8de76447d..00a565863 100644 --- a/storage/file.js +++ b/storage/file.js @@ -39,7 +39,7 @@ var checkPath = function (path, callback) { } var dirPath = path.replace(/\/[^\/]*$/, '/'); Fs.mkdir(dirPath, function (err) { - if (err && err !== 'EEXIST') { + if (err && err.code !== 'EEXIST') { callback(err); return; }