(filePath: string)
| 838 | * as the user typed them. |
| 839 | */ |
| 840 | export function isDangerousRemovalRawPath(filePath: string): boolean { |
| 841 | const expanded = expandTilde(filePath.replace(/^['"]|['"]$/g, '')).replace( |
| 842 | /\\/g, |
| 843 | '/', |
| 844 | ) |
| 845 | return isDangerousRemovalPath(expanded) |
| 846 | } |
| 847 | |
| 848 | export function dangerousRemovalDeny(path: string): PermissionResult { |
| 849 | return { |
no test coverage detected