MCPcopy Create free account
hub / github.com/VirtualHotBar/NetMount / joinDir

Function joinDir

src/utils/openlist/openlist.ts:134–139  ·  view source on GitHub ↗
(baseDir: string, child: string)

Source from the content-addressed store, hash-verified

132type OpenlistConfigPartial = Partial<OpenlistConfig>
133
134function joinDir(baseDir: string, child: string): string {
135 if (!baseDir) return child
136 const normalizedBase = baseDir.endsWith('/') ? baseDir : `${baseDir}/`
137 const normalizedChild = child.startsWith('/') ? child.slice(1) : child
138 return `${normalizedBase}${normalizedChild}`
139}
140
141function isAbsolutePath(path: string): boolean {
142 if (!path) return false

Callers 1

modifyOpenlistConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected