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

* Better Handling of escaping in rmrf
This commit is contained in:
Thomas Boop authored and GitHub committed 2021-06-07 14:16:16 -04:00
1 parent cd4edfd71c
commit fd92c6059a
3 files changed
+61 -3

No files matched your search

+5
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`
}