Notice that I took the fileglob and moved it down the script rather than just using it in my call to Get-ChildItem. I had to do that because otherwise I would only have been recursing through directories that matched the pattern, and I wanted to recurse down into all directories, but only send those entries that match the pattern down the pipeline.
The function is here, for those that don't see it inline in the post: http://poshcode.org/1113
1 comment:
Thanks for possting this
Post a Comment