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

Function directoryExists

desktop/project-create.ts:75–81  ·  view source on GitHub ↗
(directoryPath: string)

Source from the content-addressed store, hash-verified

73}
74
75async function directoryExists(directoryPath: string) {
76 try {
77 return (await stat(directoryPath)).isDirectory()
78 } catch {
79 return false
80 }
81}
82
83async function addExistingRepositoryProject(projectPath: string, repositoryUrl: string) {
84 if (!((await directoryExists(projectPath)) && (await isGitRepository(projectPath)))) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected