英文截图补充
This commit is contained in:
16
compare_images.ps1
Normal file
16
compare_images.ps1
Normal file
@@ -0,0 +1,16 @@
|
||||
$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"
|
||||
Reference in New Issue
Block a user