MCPcopy
hub / github.com/mixedbread-ai/mgrep / FileSystem

Interface FileSystem

src/lib/file.ts:33–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 * Interface for file system operations
32 */
33export interface FileSystem {
34 /**
35 * Gets all files in a directory
36 */
37 getFiles(dirRoot: string): Generator<string>;
38
39 /**
40 * Checks if a file should be ignored
41 */
42 isIgnored(filePath: string, root: string): boolean;
43
44 /**
45 * Loads the mgrepignore file for a directory
46 */
47 loadMgrepignore(dirRoot: string): void;
48}
49
50/**
51 * Node.js implementation of FileSystem with gitignore support

Callers 5

initialSyncFunction · 0.65
handleFileEventFunction · 0.65
watchDirectoryFunction · 0.65
initialSyncFunction · 0.65
startWatchFunction · 0.65

Implementers 1

NodeFileSystemsrc/lib/file.ts

Calls

no outgoing calls

Tested by

no test coverage detected