MCPcopy Index your code
hub / github.com/Noumena-Network/code / pushIfExistingDir

Function pushIfExistingDir

src/utils/markdownConfigLoader.ts:53–62  ·  view source on GitHub ↗
(dirs: string[], dirPath: string)

Source from the content-addressed store, hash-verified

51}
52
53function pushIfExistingDir(dirs: string[], dirPath: string): void {
54 try {
55 statSync(dirPath)
56 if (!dirs.includes(dirPath)) {
57 dirs.push(dirPath)
58 }
59 } catch (e: unknown) {
60 if (!isFsInaccessible(e)) throw e
61 }
62}
63
64export function getExistingProjectOrManagedDirs(
65 root: string,

Callers 3

getExistingUserDirsFunction · 0.85
getProjectDirsUpToHomeFunction · 0.85

Calls 2

statSyncFunction · 0.90
isFsInaccessibleFunction · 0.85

Tested by

no test coverage detected