MCPcopy
hub / github.com/ionic-team/capacitor / read

Method read

cli/test/util.ts:192–194  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

190 this.rootDir = rootDir;
191 }
192 async read(path: string): Promise<string> {
193 return await readFile(resolve(this.rootDir, path), { encoding: 'utf-8' });
194 }
195 async exists(path: string): Promise<boolean> {
196 return await pathExists(resolve(this.rootDir, path));
197 }

Callers 7

convertBodyFunction · 0.45
init.spec.tsFile · 0.45
update.ios.spec.tsFile · 0.45
add.ios.spec.tsFile · 0.45
convertBodyFunction · 0.45

Calls 1

readFileFunction · 0.85

Tested by

no test coverage detected