* Finds the Inode of the given path. * @param p The path to look up. * @param cb Passed an error or the Inode of the path p. * @todo memoize/cache
(tx: AsyncKeyValueROTransaction, p: string, cb: BFSCallback<Inode>)
| 1052 | * @todo memoize/cache |
| 1053 | */ |
| 1054 | private findINode(tx: AsyncKeyValueROTransaction, p: string, cb: BFSCallback<Inode>): void { |
| 1055 | this._findINode(tx, path.dirname(p), path.basename(p), (e: ApiError, id?: string): void => { |
| 1056 | if (noError(e, cb)) { |
| 1057 | this.getINode(tx, p, id!, cb); |
| 1058 | } |
| 1059 | }); |
| 1060 | } |
| 1061 | |
| 1062 | /** |
| 1063 | * Given the ID of a node, retrieves the corresponding Inode. |
no test coverage detected