master
Mark Moffat 2019-02-09 13:43:44 +10:30
parent 1ee773a3fd
commit 300057aa88
1 changed files with 3 additions and 4 deletions

View File

@ -179,10 +179,9 @@ exports.checkDirectorySync = (directory) => {
fs.statSync(directory); fs.statSync(directory);
}catch(e){ }catch(e){
try{ try{
fs.mkdirSync(directory); fs.mkdirSync(directory);
} }catch(err){
catch(err){ mkdirp.sync(directory);// error : directory & sub directories to be newly created
mkdirp.sync(directory);//error : directory & sub directories to be newly created
} }
} }
}; };