fs existsSync
This commit is contained in:
parent
9cb9192fc9
commit
2ec21b5257
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue