Fix path for file storage on windows

pull/1/head
Caleb James DeLisle 8 years ago
parent f6372ee803
commit 038a986e83

@ -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;

Loading…
Cancel
Save