MCPcopy Index your code
hub / github.com/mixedbread-ai/mgrep / isHiddenFile

Method isHiddenFile

src/lib/file.ts:68–74  ·  view source on GitHub ↗

* Checks if a file is a hidden file (starts with .)

(filePath: string, root: string)

Source from the content-addressed store, hash-verified

66 * Checks if a file is a hidden file (starts with .)
67 */
68 private isHiddenFile(filePath: string, root: string): boolean {
69 const relativePath = path.relative(root, filePath);
70 const parts = relativePath.split(path.sep);
71 return parts.some(
72 (part) => part.startsWith(".") && part !== "." && part !== "..",
73 );
74 }
75
76 /**
77 * Gets all files recursively from a directory

Callers 2

getAllFilesRecursiveMethod · 0.95
isIgnoredMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected