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

Function figureOutDefaultSqliteFilePath

src/utils/paths.ts:1–2  ·  view source on GitHub ↗
(jsonFilePath: string)

Source from the content-addressed store, hash-verified

1export const figureOutDefaultSqliteFilePath = (jsonFilePath: string) =>
2 jsonFilePath.substring(0, jsonFilePath.lastIndexOf(".")) + ".sqlite";
3
4export function getPathDepth(filePath: string) {
5 const separatorRegExp = /[\\/]/g;

Callers 4

paths.test.tsFile · 0.90
fileTree.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected