[Solved] Search for folders that doesn’t contain file with a wanted name


Try executing this in the directory containing all your movies’ folders :

$language = Read-Host "Language to search for"

foreach ($folder in (dir -Directory)) {
    if (-not (Get-ChildItem -Path "$($folder.Name)/*.$language.srt")) {
        "Missing $language subtitle for $($folder.Name)"
    }
}

0

solved Search for folders that doesn’t contain file with a wanted name