MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / readFile

Function readFile

src/fileSystem/externalFs.js:7–12  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

5
6const externalFs = {
7 async readFile(url) {
8 url = await this.formatUri(url);
9 return new Promise((resolve, reject) => {
10 sdcard.read(url, (data) => resolve({ data }), reject);
11 });
12 },
13
14 async readAsText(url, encoding) {
15 url = await this.formatUri(url);

Callers

nothing calls this directly

Calls 5

getEncodingNameFunction · 0.90
resolveFunction · 0.85
readAsTextMethod · 0.80
formatUriMethod · 0.65
readFileMethod · 0.45

Tested by

no test coverage detected