MCPcopy
hub / github.com/redfin/react-server / exists

Function exists

packages/generator-react-server/test/app.js:95–102  ·  view source on GitHub ↗
(filename, dir)

Source from the content-addressed store, hash-verified

93});
94
95function exists(filename, dir) {
96 filename = path.join(dir, filename);
97 return new Promise((resolve) => {
98 fs.access(filename, fs.F_OK, (err) => {
99 resolve(!err);
100 });
101 });
102}
103
104function readFile(filename, dir) {
105 filename = path.join(dir, filename);

Callers 1

app.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…