MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / resolvePathIfPresent

Function resolvePathIfPresent

desktop/project-create.ts:67–73  ·  view source on GitHub ↗
(projectPath: string)

Source from the content-addressed store, hash-verified

65}
66
67async function resolvePathIfPresent(projectPath: string) {
68 try {
69 return await realpath(projectPath)
70 } catch {
71 return path.resolve(projectPath)
72 }
73}
74
75async function directoryExists(directoryPath: string) {
76 try {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected