MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-workbench / parentPath

Function parentPath

src/services/models/databaseUtils.ts:36–39  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

34}
35
36export function parentPath(path: string) {
37 const splits = path.split("/");
38 return splits.length === 1 ? "#" : splits.slice(0, -1).join("/");
39}

Callers 3

_addFilesMethod · 0.90
flattenFileFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected