MCPcopy
hub / github.com/jasongin/nvs / fileExists

Function fileExists

lib/install.js:95–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93 }
94
95 let fileExists = f => {
96 try {
97 fs.accessSync(f);
98 return true;
99 } catch (e) {
100 Error.throwIfNot(Error.ENOENT, e);
101 }
102 };
103
104 const shell = process.env['SHELL'];
105 const shellName = shell && path.basename(shell);

Callers 1

getShellProfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected