diff --git a/capture.ps1 b/capture.ps1 index 7b44b14..db6fd2b 100644 --- a/capture.ps1 +++ b/capture.ps1 @@ -17,9 +17,9 @@ foreach ($file in $fileList) { if ([string]::IsNullOrWhiteSpace($file)) { continue } $files = @() if ($file.IndexOf('/*') -gt -1) { - $files = Get-ChildItem -Path $file -Recurse + $files += Get-ChildItem -Path $file -Recurse -Attributes Hidden,System,Normal } else { - $files = Get-ChildItem -Path $file + $files += Get-ChildItem -Path $file -Attributes Hidden,System,Normal } foreach ($file in $files) { Write-Host "Found $($file.FullName)"