In: Computer Science
Which of Get-ChildItem's parameters requires a value type Integer?
Which parameter would you include with Get-ChildItem if you wanted to make sure that all child items and their child items are displayed?
depth is parameter which takes value as Integer type. Depth is similar to recurse but displaying of child items depend on the depth level. depth 1 means only 1 level recursion will happen.
Get-ChildItem -Depth 1
We will use -recurse parameter if we want to display child items and their child items.
Get-ChildItem -Recurse