Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
981d62c6f0
@ -18,7 +18,7 @@ export function loadData(path) {
|
|||||||
export function getStat(path) {
|
export function getStat(path) {
|
||||||
fs.stat(path, (err, stat) => {
|
fs.stat(path, (err, stat) => {
|
||||||
if(err == null) return true;
|
if(err == null) return true;
|
||||||
else if(err.code === 'ENOENT') return false;
|
if(err.code === 'ENOENT') return false;
|
||||||
else return err.code;
|
return err.code;
|
||||||
});
|
});
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user