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

Method createRoot

src/lib/fileList.js:520–524  ·  view source on GitHub ↗

* Create a root tree * @param {string} url * @param {string} name * @returns

(url, name)

Source from the content-addressed store, hash-verified

518 * @returns
519 */
520 static async createRoot(url, name) {
521 const tree = await Tree.create(url, name, true);
522 tree.#path = name;
523 return tree;
524 }
525
526 /**@returns {string} */
527 get name() {

Callers 2

refreshFunction · 0.80
addRootFunction · 0.80

Calls 1

createMethod · 0.65

Tested by

no test coverage detected