MCPcopy
hub / github.com/opentrace/opentrace / parentDir

Function parentDir

ui/src/components/pipeline/stages/loading.ts:45–49  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

43}
44
45export function parentDir(path: string): string {
46 const slash = path.lastIndexOf('/');
47 if (slash <= 0) return '';
48 return path.slice(0, slash);
49}
50
51export function detectLanguage(ext: string): string | null {
52 return LANGUAGE_MAP[ext] ?? null;

Callers 3

executeFunction · 0.90
loading.test.tsFile · 0.90
ensureDirChainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected