16 lines
656 B
PowerShell
16 lines
656 B
PowerShell
$imagePath = 'd:\companyProject\HF-MES-manual\HF-MES-manual\public\image'
|
|
$imageEnPath = 'd:\companyProject\HF-MES-manual\HF-MES-manual\public\image_en'
|
|
$result = @()
|
|
|
|
Get-ChildItem -Path $imagePath -Recurse -File | ForEach-Object {
|
|
$relativePath = $_.FullName.Substring($imagePath.Length + 1)
|
|
$enPath = Join-Path $imageEnPath $relativePath
|
|
if (-not (Test-Path $enPath)) {
|
|
$result += [PSCustomObject]@{
|
|
Path = $_.FullName
|
|
}
|
|
}
|
|
}
|
|
|
|
$result | Export-Csv -Path 'd:\companyProject\HF-MES-manual\HF-MES-manual\missing_images.csv' -Encoding UTF8 -NoTypeInformation
|
|
Write-Host "Done! Found $($result.Count) missing files" |