MCPcopy Create free account
hub / github.com/Snapchat/Valdi / directoryExists

Method directoryExists

compiler/companion/src/project/TypeScriptHosts.ts:85–91  ·  view source on GitHub ↗
(directoryName: string)

Source from the content-addressed store, hash-verified

83 }
84
85 directoryExists?(directoryName: string): boolean {
86 if (directoryName.endsWith('node_modules/@types')) {
87 return false;
88 }
89
90 return this.fileManager.directoryExists(this.fileManager.resolvePath(directoryName));
91 }
92
93 fileExists(path: string): boolean {
94 return this.fileManager.fileExists(this.fileManager.resolvePath(path));

Callers 2

getFileSystemEntriesFunction · 0.45
readDirectoryMethod · 0.45

Calls 1

resolvePathMethod · 0.45

Tested by

no test coverage detected