MCPcopy Index your code
hub / github.com/massCodeIO/massCode / normalizePath

Function normalizePath

src/main/http/import/opencollection.ts:49–51  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

47}
48
49function normalizePath(path: string): string {
50 return path.replaceAll('\\', '/').replace(/^\/+/, '')
51}
52
53function dirname(path: string): string {
54 const normalized = normalizePath(path)

Callers 9

dirnameFunction · 0.85
basenameFunction · 0.85
stripRootDirFunction · 0.85
isInsideRootFunction · 0.85
isOpenCollectionRootFunction · 0.85
isFolderFileFunction · 0.85
parseEnvironmentFunction · 0.85
ensureFolderFunction · 0.85
parseOpenCollectionFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected