Update 'capture.ps1'

This commit is contained in:
cbrand 2023-04-15 01:45:47 -07:00
parent ef88d6be0d
commit 646eaa4e29

View File

@ -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)"