MCPcopy Index your code
hub / github.com/Acode-Foundation/Acode / removeRootTree

Function removeRootTree

src/lib/fileList.js:67–74  ·  view source on GitHub ↗
(url)

Source from the content-addressed store, hash-verified

65}
66
67function removeRootTree(url) {
68 const rootUrl = url.endsWith("/") ? url : `${url}/`;
69 Object.keys(filesTree).forEach((key) => {
70 if (key === url || key.startsWith(rootUrl)) {
71 delete filesTree[key];
72 }
73 });
74}
75
76/**
77 * Refresh file list

Callers 2

removeFunction · 0.85
onRemoveFolderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected