MCPcopy Create free account
hub / github.com/Maccoder3/MAC-MD / checkFileExists

Function checkFileExists

lib/helper.js:42–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41/** @param {string} file */
42const checkFileExists = file =>
43 fs.promises
44 .access(file, fs.constants.F_OK)
45 .then(() => true)
46 .catch(() => false)
47
48/** @type {(name: string, path: string, query: { [Key: string]: any }, apikeyqueryname: string) => string} */
49const API = (name, path = '/', query = {}, apikeyqueryname) =>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected