Public/Remove-Folder.ps1
# Remove-Folder C:\src\Beispiele @("node_modules", "npm-cache") function Remove-Folder { Param( [string]$Path = $pwd, [Parameter(Mandatory = $true)] [string[]]$Names ) $childs = Get-ChildItem $Path foreach ($item in $childs) { if ($item -is [System.IO.DirectoryInfo]) { $curDir = Join-Path $Path $item } } } |