|
|
|
@ -18,7 +18,7 @@ export function loadData(path) {
|
|
|
|
|
export function getStat(path) {
|
|
|
|
|
fs.stat(path, (err, stat) => {
|
|
|
|
|
if(err == null) return true;
|
|
|
|
|
else if(err.code === 'ENOENT') return false;
|
|
|
|
|
else return err.code;
|
|
|
|
|
if(err.code === 'ENOENT') return false;
|
|
|
|
|
return err.code;
|
|
|
|
|
});
|
|
|
|
|
}
|