MCPcopy Create free account
hub / github.com/TestSprite/testsprite-cli / readFile

Method readFile

src/commands/agent.ts:39–39  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

37 // path-safety walk — fs writes follow symlinks, so we must be able to see them.
38 lstat(p: string): Promise<{ isFile: boolean; isSymbolicLink: boolean } | null>;
39 readFile(p: string): Promise<string>;
40 // exclusive: fail with EEXIST if the path already exists. O_EXCL|O_CREAT does
41 // not follow a final symlink, so exclusive writes never clobber or traverse a
42 // planted symlink — used for backups and fresh installs.

Callers 3

readFileFunction · 0.80
runInstallFunction · 0.80
readFileFunction · 0.80

Calls

no outgoing calls

Tested by 1

readFileFunction · 0.64