(segments: string[])
| 35 | } |
| 36 | |
| 37 | export function encodeVfsPathSegments(segments: string[]): string { |
| 38 | return segments.map(encodeVfsSegment).join('/') |
| 39 | } |
| 40 | |
| 41 | export function decodeVfsPathSegments(path: string): string[] { |
| 42 | const trimmed = path.trim().replace(/^\/+|\/+$/g, '') |
no test coverage detected