I would like to find all directories at the top level from the location of the script that are stored in subversion.
In C# it would be something like this
Unfortunately there is no equivalent in PowerShell. I wrote a blog post about this with a suggestion for a general purpose Test-Any function / filter.
function Test-Any() { begin { $any = $false } process { $any = $true } end { $any } }
Blog post: Is there anything in that pipeline?