Fix path for file storage on windows

This commit is contained in:
Caleb James DeLisle 2016-09-26 12:17:32 +02:00
parent f6372ee803
commit 038a986e83
1 changed files with 1 additions and 2 deletions

View File

@ -37,8 +37,7 @@ var checkPath = function (path, callback) {
callback(err);
return;
}
var dirPath = path.replace(/\/[^\/]*$/, '/');
Fs.mkdir(dirPath, function (err) {
Fs.mkdir(Path.dirname(path), function (err) {
if (err && err.code !== 'EEXIST') {
callback(err);
return;