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

Function addStorage

src/pages/fileBrowser/fileBrowser.js:1652–1663  ·  view source on GitHub ↗

* Adds a new storage and refresh location

()

Source from the content-addressed store, hash-verified

1650 * Adds a new storage and refresh location
1651 */
1652 function addStorage() {
1653 util
1654 .addPath()
1655 .then((res) => {
1656 storageList.push(res);
1657 localStorage.storageList = JSON.stringify(storageList);
1658 reload();
1659 })
1660 .catch((err) => {
1661 helpers.error(err);
1662 });
1663 }
1664 });
1665}
1666

Callers 2

FileBrowserIncludeFunction · 0.85
handleClickFunction · 0.85

Calls 2

reloadFunction · 0.70
errorMethod · 0.45

Tested by

no test coverage detected