(inode: Inode)
| 450 | */ |
| 451 | private _findINode(tx: SyncKeyValueROTransaction, parent: string, filename: string): string { |
| 452 | const readDirectory = (inode: Inode): string => { |
| 453 | // Get the root's directory listing. |
| 454 | const dirList = this.getDirListing(tx, parent, inode); |
| 455 | // Get the file's ID. |
| 456 | if (dirList[filename]) { |
| 457 | return dirList[filename]; |
| 458 | } else { |
| 459 | throw ApiError.ENOENT(path.resolve(parent, filename)); |
| 460 | } |
| 461 | }; |
| 462 | if (parent === '/') { |
| 463 | if (filename === '') { |
| 464 | // BASE CASE #1: Return the root's ID. |
nothing calls this directly
no test coverage detected