Skip to content

Commit

Permalink
Merge pull request #11 from rulasg/7-bug-fdf-does-not-find-files-on-s…
Browse files Browse the repository at this point in the history
…ubfolders-of-docs-stores-with-isrecursive-on

7-bug-fdf-does-not-find-files-on-subfolders-of-docs-stores-with-isrecursive-on
  • Loading branch information
rulasg committed May 20, 2023
2 parents f45f2be + 8ba76b3 commit 3a3457a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Docs.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,11 @@ function Find-DocsFile {

$stores = GEt-DocsStore -Exist

$files = $stores | Get-ChildItem -Filter $Pattern -Recurse:$Recurse
$files = $stores | ForEach-Object {
$isRecurse = $Recurse -or $_.IsRecursive
$_.Path | Get-ChildItem -Filter $Pattern -Recurse:$isRecurse
}


# $files = Get-DocsStore -Exist | Get-ChildItem -Filter $Pattern -Recurse:$store.IsRecursive -File

Expand Down

0 comments on commit 3a3457a

Please sign in to comment.