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

Method readFile

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

Source from the content-addressed store, hash-verified

209 }
210
211 readFile(filePath: string): string {
212 return fs.readFileSync(filePath, 'utf8')
213 }
214
215 readFileAsJsonIfExists(filePath: string): any {
216 if(!this.fileExists(filePath)) return null

Callers 15

copyFileMethod · 0.95
manipulateFileMethod · 0.95
readFileIfExistsMethod · 0.95
readFileAsJsonMethod · 0.95
changeDatabaseMethod · 0.80
readComposerJsonMethod · 0.80
readPackageJsonMethod · 0.80
readEnvFileMethod · 0.80
readSettingsFileMethod · 0.80
parseJsonDataMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected