MCPcopy Create free account
hub / github.com/d1ll0n/stack-packer / parentOf

Function parentOf

src/project/paths.ts:12–12  ·  view source on GitHub ↗
(_path: string)

Source from the content-addressed store, hash-verified

10export const getDir = (_path: string) => isDir(_path) ? _path : path.parse(_path).dir;
11
12export const parentOf = (_path: string) => path.parse(_path).dir;
13
14export const containsChild = (_path: string, child: string) => fs.existsSync(path.join(_path, child))
15

Callers 2

getFoundryRootFromSrcFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected