Get-ChildItem contém o parâmetro -DepthGet-ChildItem has -Depth parameter

Get-ChildItem agora tem um parâmetro –Depth que é usado com –Recurse para limitar a recursão:Get-ChildItem now has a –Depth parameter you use with –Recurse to limit the recursion:

PS C:\Users\slee\Downloads\Example> Get-ChildItem -Recurse -Depth 0PS C:\Users\slee\Downloads\Example> Get-ChildItem -Recurse -Depth 0

Diretório: C:\Users\slee\Downloads\ExampleDirectory: C:\Users\slee\Downloads\Example

Mode LastWriteTime Length NameMode LastWriteTime Length Name


d----- 4/14/2015 5:36 PM Depth0d----- 4/14/2015 5:36 PM Depth0

-a---- 4/14/2015 1:19 PM 0 File1.txt-a---- 4/14/2015 1:19 PM 0 File1.txt

-a---- 4/14/2015 1:19 PM 0 File2.txt-a---- 4/14/2015 1:19 PM 0 File2.txt

-a---- 4/14/2015 1:19 PM 0 File3.txt-a---- 4/14/2015 1:19 PM 0 File3.txt

PS C:\Users\slee\Downloads\Example> Get-ChildItem -Recurse -Depth 1PS C:\Users\slee\Downloads\Example> Get-ChildItem -Recurse -Depth 1

Diretório: C:\Users\slee\Downloads\ExampleDirectory: C:\Users\slee\Downloads\Example

Mode LastWriteTime Length NameMode LastWriteTime Length Name


d----- 4/14/2015 5:36 PM Depth0d----- 4/14/2015 5:36 PM Depth0

-a---- 4/14/2015 1:19 PM 0 File1.txt-a---- 4/14/2015 1:19 PM 0 File1.txt

-a---- 4/14/2015 1:19 PM 0 File2.txt-a---- 4/14/2015 1:19 PM 0 File2.txt

-a---- 4/14/2015 1:19 PM 0 File3.txt-a---- 4/14/2015 1:19 PM 0 File3.txt

Diretório: C:\Users\slee\Downloads\Example\Depth0Directory: C:\Users\slee\Downloads\Example\Depth0

Mode LastWriteTime Length NameMode LastWriteTime Length Name


d----- 4/14/2015 5:33 PM Depth1d----- 4/14/2015 5:33 PM Depth1