Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
36
export
function
parentPath(path: string) {
37
const
splits = path.split(
"/"
);
38
return
splits.length === 1 ?
"#"
: splits.slice(0, -1).join(
"/"
);
39
}
Callers
3
_imputeIntermediateDirectories
Method · 0.90
_addFiles
Method · 0.90
flattenFile
Function · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected