(level: BrowseLevel, dir: string)
| 118 | |
| 119 | /** `path` joined with one of its listed folders, without doubling the separator. */ |
| 120 | export function childPath(level: BrowseLevel, dir: string): string { |
| 121 | const base = level.path; |
| 122 | if (base.length === 0) { |
| 123 | return dir; |
| 124 | } |
| 125 | return base.endsWith('/') ? `${base}${dir}` : `${base}/${dir}`; |
| 126 | } |
| 127 | |
| 128 | // ---------------------------------------------------------------- health -- |
| 129 |
no outgoing calls
no test coverage detected