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

Function pathExists

tasks/utils.js:57–64  ·  view source on GitHub ↗
(dest)

Source from the content-addressed store, hash-verified

55 * @returns {Promise<boolean>}
56 */
57export async function pathExists(dest) {
58 try {
59 await fs.access(dest);
60 return true;
61 } catch (err) {
62 return false;
63 }
64}
65
66/**
67 * @param {string} dest

Callers 3

onChangeFunction · 0.90
removeFolderFunction · 0.85
mkDirIfMissingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected