How to find files in directories with certain name using Get-ChildItem?
I would use the Filter parameter instead of Include, it performs much fatser
gci .\topfolder -rec -filter *foo* | where { $_.psiscontainer } | gci
I would use the Filter parameter instead of Include, it performs much fatser
gci .\topfolder -rec -filter *foo* | where { $_.psiscontainer } | gci