Update 'capture.ps1'

This commit is contained in:
cbrand 2023-04-15 01:18:14 -07:00
parent ce09580a6b
commit b0e0f2d095

View File

@ -26,6 +26,7 @@ foreach ($file in $fileList) {
$targetParent = Split-Path -Path $targetCopy -Parent $targetParent = Split-Path -Path $targetCopy -Parent
if (-not (Test-Path -Path $targetParent)) { if (-not (Test-Path -Path $targetParent)) {
New-Item -ItemType Directory -Path $targetParent -Force | Out-Null New-Item -ItemType Directory -Path $targetParent -Force | Out-Null
Write-Host "Copy-Item -Path '$($file.FullName)' -Destination '$($targetParent)'"
Copy-Item -Path $file.FullName -Destination $targetParent Copy-Item -Path $file.FullName -Destination $targetParent
} }
} }