MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / loadIgnoreRules

Function loadIgnoreRules

src/core/walker.ts:41–49  ·  view source on GitHub ↗
(rootDir: string)

Source from the content-addressed store, hash-verified

39]);
40
41async function loadIgnoreRules(rootDir: string): Promise<Ignore> {
42 const ig = ignore();
43 try {
44 const content = await readFile(join(rootDir, ".gitignore"), "utf-8");
45 ig.add(content);
46 } catch {
47 }
48 return ig;
49}
50
51async function walkRecursive(
52 dir: string,

Callers 1

walkDirectoryFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected