$numGood = 0;
do {
- $res = $dbr->select( 'image', '*', array( 'img_name > ' . $dbr->addQuotes( $start ) ) );
+ $res = $dbr->select( 'image', '*', array( 'img_name > ' . $dbr->addQuotes( $start ) ),
+ 'checkImages.php', array( 'LIMIT' => $batchSize ) );
foreach ( $res as $row ) {
$numImages++;
$start = $row->img_name;
continue;
}
+ if ( $stat['mode'] & 040000 ) {
+ echo "{$row->img_name}: is a directory\n";
+ continue;
+ }
+
if ( $stat['size'] == 0 && $row->img_size != 0 ) {
echo "{$row->img_name}: truncated, was {$row->img_size}\n";
continue;