MCPcopy Create free account
hub / github.com/Noumena-Network/code / shouldIgnore

Function shouldIgnore

src/utils/glob.ts:201–208  ·  view source on GitHub ↗
(relativePath: string)

Source from the content-addressed store, hash-verified

199 const matches: Array<{ path: string; mtimeMs: number }> = []
200
201 function shouldIgnore(relativePath: string): boolean {
202 const withSlash = relativePath.endsWith('/')
203 ? relativePath
204 : `${relativePath}/`
205 return ignoreMatchers.some(
206 isMatch => isMatch(relativePath) || isMatch(withSlash),
207 )
208 }
209
210 async function scan(currentDir: string, relativeDir = ''): Promise<void> {
211 if (abortSignal.aborted) {

Callers 1

scanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected