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

Function pushFolder

src/pages/fileBrowser/util.js:12–21  ·  view source on GitHub ↗

* * @param {Array} list * @param {String} name * @param {String} url * @param {Object} extra

(list, name, url, extra = {})

Source from the content-addressed store, hash-verified

10 * @param {Object} extra
11 */
12 pushFolder(list, name, url, extra = {}) {
13 list.push({
14 url: url,
15 name: name,
16 isDirectory: true,
17 parent: true,
18 type: "dir",
19 ...extra,
20 });
21 },
22 /**
23 * Save a new path using storage access framework
24 * @param {String} name

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected