Skip to content

Commit

Permalink
Drop Thumbs grep
Browse files Browse the repository at this point in the history
* This doesn’t let files to find zips with some special names, like “sana-5.1-20200823-SANA_Public-fajita.zip” (roms starting with sana)
  • Loading branch information
erfanoabdi authored and julianxhokaxhiu committed Aug 24, 2020
1 parent a89c01b commit e814caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers/Builds.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private function getBuilds() {
array_push( $dirs, $path );
foreach ( $dirs as $dir ) {
// Get the file list and parse it
$files = preg_grep( '/^([^.Thumbs])/', scandir( $dir ) );
$files = scandir( $dir );
if ( count( $files ) > 0 ) {
foreach ( $files as $file ) {
$extension = pathinfo($file, PATHINFO_EXTENSION);
Expand Down

0 comments on commit e814caa

Please sign in to comment.