MCPcopy
hub / github.com/audreyt/ethercalc / resolve

Function resolve

packages/migrate/test/cli.test.ts:766–776  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

764 };
765 ingest(root, tree);
766 const resolve = (p: string): Entry | null => {
767 const parts = p.split('/').filter((s) => s.length > 0);
768 let cur: Entry = { kind: 'dir', entries: root };
769 for (const part of parts) {
770 if (cur.kind !== 'dir') return null;
771 const next = cur.entries.get(part);
772 if (next === undefined) return null;
773 cur = next;
774 }
775 return cur;
776 };
777 return {
778 readdir: async (p) => {
779 const e = resolve(p);

Callers 13

buildFsFunction · 0.70
vite.config.tsFile · 0.50
closeMethod · 0.50
defaultConnectFunction · 0.50
deliverFrameFunction · 0.50
closeSessionFunction · 0.50
pickFreePortFunction · 0.50
fixtures-client.tsFile · 0.50
fixtures.tsFile · 0.50
useTocPoll.test.tsFile · 0.50
openSocketIo1SessionFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected