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);
|
||||
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…
Reference in New Issue