MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / readFile

Method readFile

freebuff/e2e/utils/freebuff-session.ts:72–74  ·  view source on GitHub ↗

Read a file from the session's working directory.

(relativePath: string)

Source from the content-addressed store, hash-verified

70
71 /** Read a file from the session's working directory. */
72 readFile(relativePath: string): string {
73 return fs.readFileSync(path.join(this.workDir, relativePath), 'utf-8')
74 }
75
76 /** Check if a file exists in the session's working directory. */
77 fileExists(relativePath: string): boolean {

Callers 15

waitForFileContentMethod · 0.95
copyLastLogLinesFunction · 0.80
loadSessionInfoFunction · 0.80
loadCommandsFunction · 0.80
loadCapturesFunction · 0.80
loadUserKnowledgeFilesFunction · 0.80
applyChangeFunction · 0.80
applyPatchToolFunction · 0.80
getFilesFunction · 0.80

Calls

no outgoing calls

Tested by 2

loadEnvFileFunction · 0.64
loadEnvFileFunction · 0.64