fs existsSync

This commit is contained in:
Joan Sanchez 2019-01-15 09:04:21 +01:00
parent 9cb9192fc9
commit 2ec21b5257
1 changed files with 2 additions and 2 deletions

View File

@ -11,7 +11,7 @@ let configFiles = [
]; ];
for (let configFile of configFiles) { for (let configFile of configFiles) {
if (fs.accessSync(configFile)) if (fs.existsSync(configFile))
Object.assign(config, require(configFile)); Object.assign(config, require(configFile));
} }
@ -22,7 +22,7 @@ let proxyFiles = [
]; ];
for (let proxyFile of proxyFiles) { for (let proxyFile of proxyFiles) {
if (fs.accessSync(proxyFile)) if (fs.existsSync(proxyFile))
Object.assign(proxyConf, require(proxyFile)); Object.assign(proxyConf, require(proxyFile));
} }