Created
March 9, 2020 22:06
-
-
Save sean-gilliam/7a07f501cbfb4d1659a75d5984ea7424 to your computer and use it in GitHub Desktop.
Powershell exclusion list
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$folderExclusionList = @("bin", "obj" ,"packages") | |
... | |
Where-Object { | |
$dir = $_.DirectoryName | |
# return all directories that don't have part of the exclusion list in the name | |
$null -eq ($folderExclusionList | Where-Object { $dir -match $_ }) | |
} | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment