MCPcopy Index your code
hub / github.com/stackblitz/bolt.new / getFile

Method getFile

app/lib/stores/files.ts:65–73  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

63 }
64
65 getFile(filePath: string) {
66 const dirent = this.files.get()[filePath];
67
68 if (dirent?.type !== 'file') {
69 return undefined;
70 }
71
72 return dirent;
73 }
74
75 getFileModifications() {
76 return computeFileModifications(this.files.get(), this.#modifiedFiles);

Callers 3

saveFileMethod · 0.95
resetCurrentDocumentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected