MCPcopy
hub / github.com/claude-code-best/claude-code / pathExists

Function pathExists

src/utils/file.ts:39–46  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

37 * Check if a path exists asynchronously.
38 */
39export async function pathExists(path: string): Promise<boolean> {
40 try {
41 await stat(path)
42 return true
43 } catch {
44 return false
45 }
46}
47
48export const MAX_OUTPUT_SIZE = 0.25 * 1024 * 1024 // 0.25MB in bytes
49

Callers 15

fileHistoryGetDiffStatsFunction · 0.85
fileHistoryHasAnyChangesFunction · 0.85
execCommandHookFunction · 0.85
isDesktopInstalledFunction · 0.85
createAndSaveSnapshotFunction · 0.85
resolvePluginPathFunction · 0.85
installFromNpmFunction · 0.85
installFromLocalFunction · 0.85
cachePluginFunction · 0.85
loadPluginManifestFunction · 0.85
loadPluginHooksFunction · 0.85

Calls 1

statFunction · 0.85

Tested by

no test coverage detected