* 安全转义 PowerShell 路径参数
(folderPath: string)
| 43 | * 安全转义 PowerShell 路径参数 |
| 44 | */ |
| 45 | function escapePowerShellPath(folderPath: string): string { |
| 46 | const escaped = folderPath.replace(/'/g, "''") |
| 47 | return `'${escaped}'` |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * 安全转义 CMD 路径参数 |
no outgoing calls
no test coverage detected