* Given the ID of a node, retrieves the corresponding Inode. * @param tx The transaction to use. * @param p The corresponding path to the file (used for error messages). * @param id The ID to look up.
(tx: SyncKeyValueROTransaction, p: string, id: string)
| 490 | * @param id The ID to look up. |
| 491 | */ |
| 492 | private getINode(tx: SyncKeyValueROTransaction, p: string, id: string): Inode { |
| 493 | const inode = tx.get(id); |
| 494 | if (inode === undefined) { |
| 495 | throw ApiError.ENOENT(p); |
| 496 | } |
| 497 | return Inode.fromBuffer(inode); |
| 498 | } |
| 499 | |
| 500 | /** |
| 501 | * Given the Inode of a directory, retrieves the corresponding directory |
no test coverage detected