Public/Get-IsGitRepository.ps1
# Remove-Folder C:\src\Beispiele @("node_modules", "npm-cache") function Get-IsGitRepository { [CmdletBinding()] [OutputType([Boolean])] Param( [System.IO.DirectoryInfo]$item ) $isGitFolder = Join-Path $item.FullName ".git" | Test-Path Write-Debug "isGitFolder: $isGitFolder" return $isGitFolder } |