MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / dirOf

Function dirOf

runtime/src/specs.js:13–16  ·  view source on GitHub ↗
(spec)

Source from the content-addressed store, hash-verified

11};
12
13export const dirOf = (spec) => {
14 const i = spec.lastIndexOf('/');
15 return i === -1 ? '' : spec.slice(0, i + 1);
16};
17
18export const parentDir = (dir) => {
19 if (dir === '') return null;

Callers 2

enqueueManifestSiblingFunction · 0.90
bfsPrefetchFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected