Get-ChildItem의 -Depth 매개 변수Get-ChildItem has -Depth parameter

이제 Get-ChildItem–Recurse와 함께 사용되어 재귀를 제한하는 –Depth 매개 변수를 제공합니다.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

디렉터리: C:\사용자가\slee\다운로드\예제Directory: 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

디렉터리: C:\사용자가\slee\다운로드\예제Directory: 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

디렉터리: C:\사용자가\slee\다운로드\예제\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