MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / getFileRedirections

Function getFileRedirections

source code/utils/powershell/parser.ts:1715–1721  ·  view source on GitHub ↗
(
  parsed: ParsedPowerShellCommand,
)

Source from the content-addressed store, hash-verified

1713 */
1714// exported for testing
1715export function getFileRedirections(
1716 parsed: ParsedPowerShellCommand,
1717): ParsedRedirection[] {
1718 return getAllRedirections(parsed).filter(
1719 r => !r.isMerging && !isNullRedirectionTarget(r.target),
1720 )
1721}
1722
1723/**
1724 * Derive security-relevant flags from the parsed command structure.

Callers 1

Calls 2

getAllRedirectionsFunction · 0.85
isNullRedirectionTargetFunction · 0.85

Tested by

no test coverage detected