mirror of https://github.com/xwiki-labs/cryptpad
Fix path for file storage on windows
This commit is contained in:
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…
Reference in New Issue