(baseDir: string, child: string)
| 132 | type OpenlistConfigPartial = Partial<OpenlistConfig> |
| 133 | |
| 134 | function 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 | |
| 141 | function isAbsolutePath(path: string): boolean { |
| 142 | if (!path) return false |
no outgoing calls
no test coverage detected