Update escaping rules in io's rmRF (#828)
* Better Handling of escaping in rmrf
This commit is contained in:
1 parent
cd4edfd71c
commit
fd92c6059a
3 files changed
+61
-3
No files matched your search
@@ -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`
|
||||
}
|
||||
Reference in new issue
Block a user