0

以下过滤器是为了确保只检查 .properties 文件,而检查其他文件,例如 .sh。任何人都可以在我的过滤器中看到错误吗?

Get-ChildItem -Path $directoryToTarget -Filter "*.properties" -Recurse | where { !$_.PSIsContainer } | % { 

谢谢!

4

1 回答 1

1

我想你想要 - 包括:

Get-ChildItem -Path $directoryToTarget -Include *.properties -Recurse | where { !$_.PSIsContainer } | % { 
于 2013-09-05T11:27:02.783 回答