MCPcopy Index your code
hub / github.com/darkreader/darkreader / fileExists

Function fileExists

tasks/utils.js:123–130  ·  view source on GitHub ↗
(src)

Source from the content-addressed store, hash-verified

121 * @returns {Promise<boolean>}
122 */
123export async function fileExists(src) {
124 try {
125 await fs.access(src, fs.constants.R_OK);
126 return true;
127 } catch (e) {
128 return false;
129 }
130}
131
132/**
133 * @param {string} dest

Callers 2

translateNewEnMessagesFunction · 0.90
createHashesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected