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

Function listDir

src/fileSystem/internalFs.js:13–23  ·  view source on GitHub ↗

* * @param {string} url * @returns {Promise}

(url)

Source from the content-addressed store, hash-verified

11 * @returns {Promise}
12 */
13 listDir(url) {
14 return new Promise((resolve, reject) => {
15 reject = setMessage(reject);
16 window.resolveLocalFileSystemURL(url, success, reject);
17
18 function success(fs) {
19 const reader = fs.createReader();
20 reader.readEntries(resolve, reject);
21 }
22 });
23 },
24
25 /**
26 *

Callers

nothing calls this directly

Calls 1

setMessageFunction · 0.70

Tested by

no test coverage detected