Skip to content

Commit 76cc8ac

Browse files
authored
Merge pull request #5 from Tools4ever-NIM/msheldont4e-patch-1
Add Recursion Depth Setting
2 parents 3f6eb31 + 75e5a48 commit 76cc8ac

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

File System.ps1

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ function Idm-SystemInfo {
4545
label = 'Recursive'
4646
value = $true
4747
}
48+
@{
49+
name = 'recursion_depth'
50+
type = 'textbox'
51+
label = 'Recursion Depth'
52+
description = 'Max. depth of recursion'
53+
value = 1
54+
hidden = '!recursive'
55+
}
56+
4857
@{
4958
name = 'ignoreACEPermissionErrors'
5059
type = 'checkbox'
@@ -327,6 +336,7 @@ function Idm-ExplicitACEsRead {
327336
Force = $true
328337
LiteralPath = $path_spec.path
329338
Recurse = $system_params.recursive
339+
Depth = $system_params.recursion_depth
330340
ErrorAction = 'SilentlyContinue'
331341
}
332342

@@ -502,6 +512,7 @@ function Idm-FoldersRead {
502512
Force = $true
503513
LiteralPath = $path_spec.path
504514
Recurse = $system_params.recursive
515+
Depth = $system_params.recursion_depth
505516
ErrorAction = 'SilentlyContinue'
506517
}
507518

0 commit comments

Comments
 (0)