(parent, child)
| 36 | * @param {string} child file url |
| 37 | */ |
| 38 | export async function append(parent, child) { |
| 39 | const tree = getTree(Object.values(filesTree), parent); |
| 40 | if (!tree || !tree.children) return; |
| 41 | |
| 42 | const childTree = await Tree.create(child); |
| 43 | tree.children.push(childTree); |
| 44 | trackScan(getAllFiles(childTree)); |
| 45 | emit("add-file", childTree); |
| 46 | } |
| 47 | |
| 48 | /** |
| 49 | * Remove a file from the list |
nothing calls this directly
no test coverage detected