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

Function onRemoveFolder

src/lib/fileList.js:252–257  ·  view source on GitHub ↗

* Called when a folder is removed * @param {{url: string, name: string}} folder - Folder path

({ url })

Source from the content-addressed store, hash-verified

250 * @param {{url: string, name: string}} folder - Folder path
251 */
252function onRemoveFolder({ url }) {
253 const tree = filesTree[url];
254 if (!tree) return;
255 removeRootTree(url);
256 emit("remove-folder", tree);
257}
258
259/**
260 * Get all file recursively

Callers

nothing calls this directly

Calls 2

removeRootTreeFunction · 0.85
emitFunction · 0.70

Tested by

no test coverage detected