MCPcopy
hub / github.com/marktext/marktext / readFile

Method readFile

packages/desktop/src/types/global.d.ts:109–109  ·  view source on GitHub ↗
(p: string, encoding?: string)

Source from the content-addressed store, hash-verified

107 stat(p: string): Promise<SerializedStat>
108 writeFile(p: string, data: string | Uint8Array): Promise<void>
109 readFile(p: string, encoding?: string): Promise<string | Uint8Array>
110 pathExists(p: string): Promise<boolean>
111 unlink(p: string): Promise<void>
112 readdir(p: string): Promise<string[]>

Callers 5

getCssForOptionsFunction · 0.80
loadMarkdownFileFunction · 0.80
registerFsHandlersFunction · 0.80
readDocFunction · 0.80
buildIndexFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected