Update escaping rules in io's rmRF (#828)

* Better Handling of escaping in rmrf
This commit is contained in:
Thomas Boop
2021-06-07 14:16:16 -04:00
committed by GitHub
parent bf4ce74a0f
commit c9af6bb1b3
3 changed files with 61 additions and 3 deletions

View File

@@ -166,3 +166,8 @@ function isUnixExecutable(stats: fs.Stats): boolean {
((stats.mode & 64) > 0 && stats.uid === process.getuid())
)
}
// Get the path of cmd.exe in windows
export function getCmdPath(): string {
return process.env['COMSPEC'] ?? `cmd.exe`
}