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); callback(err);
return; return;
} }
var dirPath = path.replace(/\/[^\/]*$/, '/'); Fs.mkdir(Path.dirname(path), function (err) {
Fs.mkdir(dirPath, function (err) {
if (err && err.code !== 'EEXIST') { if (err && err.code !== 'EEXIST') {
callback(err); callback(err);
return; return;

Loading…
Cancel
Save