MCPcopy Create free account
hub / github.com/WJX20/claude-code / isDangerousRemovalRawPath

Function isDangerousRemovalRawPath

src/tools/PowerShellTool/pathValidation.ts:840–846  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

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

Callers 2

Calls 2

isDangerousRemovalPathFunction · 0.85
expandTildeFunction · 0.70

Tested by

no test coverage detected