MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / read

Method read

tests/__mocks__/obsidian.ts:118–125  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

116 }
117
118 read(path: string): string {
119 const normalizedPath = this.normalizePath(path);
120 const file = this.files.get(normalizedPath);
121 if (!file) {
122 throw new Error(`File not found: ${normalizedPath}`);
123 }
124 return file.content;
125 }
126
127 getFiles(): MockFile[] {
128 return Array.from(this.files.values());

Callers

nothing calls this directly

Calls 2

normalizePathMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected