(str: string)
| 122 | * quotes when generating code. |
| 123 | */ |
| 124 | export function escapePath(str: string): string { |
| 125 | const escaped = JSON.stringify(str); |
| 126 | |
| 127 | // Remove the " around the json string; |
| 128 | return escaped.substring(1, escaped.length - 1); |
| 129 | } |
| 130 | |
| 131 | export function addTrailingPathSeparator(str: string): string { |
| 132 | return str.endsWith(path.sep) |
no outgoing calls
searching dependent graphs…