MCPcopy Create free account
hub / github.com/VemtoOrg/vemto2 / readFileAsJsonIfExists

Method readFileAsJsonIfExists

src/main/base/FileSystem.ts:215–218  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

213 }
214
215 readFileAsJsonIfExists(filePath: string): any {
216 if(!this.fileExists(filePath)) return null
217 return this.readFileAsJson(filePath)
218 }
219
220 readFileAsJson(filePath: string): any {
221 let fileContent = this.readFile(filePath)

Callers 1

HandleDatabaseFunction · 0.80

Calls 2

fileExistsMethod · 0.95
readFileAsJsonMethod · 0.95

Tested by

no test coverage detected