(path: string)
| 846 | } |
| 847 | |
| 848 | export function dangerousRemovalDeny(path: string): PermissionResult { |
| 849 | return { |
| 850 | behavior: 'deny', |
| 851 | message: `Remove-Item on system path '${path}' is blocked. This path is protected from removal.`, |
| 852 | decisionReason: { |
| 853 | type: 'other', |
| 854 | reason: 'Removal targets a protected system path', |
| 855 | }, |
| 856 | } |
| 857 | } |
| 858 | |
| 859 | /** |
| 860 | * Checks if a resolved path is allowed for the given operation type. |
no outgoing calls
no test coverage detected