(entry: FSEntry)
| 421 | } |
| 422 | |
| 423 | _remove(entry: FSEntry) { |
| 424 | const parentEntry = this._assertDir(path.dirname(entry.path)); |
| 425 | |
| 426 | const index = parentEntry.children.indexOf(entry); |
| 427 | |
| 428 | if (index === -1) { |
| 429 | // Should never happen so w/e |
| 430 | return; |
| 431 | } |
| 432 | |
| 433 | parentEntry.children.splice(index, 1); |
| 434 | } |
| 435 | } |
no test coverage detected