(path, _removeOnlyChild)
| 158 | |
| 159 | // Remove Node |
| 160 | const remove = async (path, _removeOnlyChild) => { |
| 161 | try { |
| 162 | await mtree.removeNode(path, _removeOnlyChild); |
| 163 | return true; |
| 164 | } catch { |
| 165 | return false; // or throw error as you see fit |
| 166 | } |
| 167 | }; |
| 168 | |
| 169 | // Update Node |
| 170 | const update = async (path, data) => { |
no test coverage detected