MCPcopy Index your code
hub / github.com/coderoad/coderoad-vscode / exists

Function exists

src/services/node/index.ts:31–35  ·  view source on GitHub ↗
(...paths: string[])

Source from the content-addressed store, hash-verified

29}
30
31export const exists = (...paths: string[]): boolean | never => {
32 const filePath = getWorkspacePath(...paths)
33 logger(`Check file exists: ${filePath}`)
34 return fs.existsSync(filePath)
35}
36
37export const removeFile = (...paths: string[]) => {
38 const filePath = getWorkspacePath(...paths)

Callers 1

initIfNotExistsFunction · 0.90

Calls 2

getWorkspacePathFunction · 0.85
loggerFunction · 0.50

Tested by

no test coverage detected