MCPcopy
hub / github.com/jvilk/BrowserFS / findINode

Method findINode

src/generic/key_value_filesystem.ts:482–484  ·  view source on GitHub ↗

* Finds the Inode of the given path. * @param p The path to look up. * @return The Inode of the path p. * @todo memoize/cache

(tx: SyncKeyValueROTransaction, p: string)

Source from the content-addressed store, hash-verified

480 * @todo memoize/cache
481 */
482 private findINode(tx: SyncKeyValueROTransaction, p: string): Inode {
483 return this.getINode(tx, p, this._findINode(tx, path.dirname(p), path.basename(p)));
484 }
485
486 /**
487 * Given the ID of a node, retrieves the corresponding Inode.

Callers 6

renameSyncMethod · 0.95
statSyncMethod · 0.95
openFileSyncMethod · 0.95
readdirSyncMethod · 0.95
commitNewFileMethod · 0.95
removeEntryMethod · 0.95

Calls 2

getINodeMethod · 0.95
_findINodeMethod · 0.95

Tested by

no test coverage detected