mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Use ensureDir()
insted of mkdir()
and add test case
This commit is contained in:
@@ -145,7 +145,7 @@ LocalFileSystem.prototype.open = function(){
|
||||
});
|
||||
}).catch(function(err){
|
||||
if(err.code == 'ENOENT') {
|
||||
return fs.mkdir(self.storageBaseDir);
|
||||
return fs.ensureDir(self.storageBaseDir);
|
||||
}else{
|
||||
return Promise.reject(err);
|
||||
}
|
||||
|
Reference in New Issue
Block a user