| @@ 1177-1185 (lines=9) @@ | ||
| 1174 | $files = array(); |
|
| 1175 | ||
| 1176 | foreach (scandir($dir) as $file) { |
|
| 1177 | if ( |
|
| 1178 | ($file === '.' || $file === '..') |
|
| 1179 | || ($ignore_hidden && $file{0} === '.') |
|
| 1180 | || !is_dir("$dir/$file") |
|
| 1181 | || in_array($file, $exclude) |
|
| 1182 | || in_array("$dir/$file", $exclude) |
|
| 1183 | ) { |
|
| 1184 | continue; |
|
| 1185 | } |
|
| 1186 | ||
| 1187 | if (!is_null($filter)) { |
|
| 1188 | if (!preg_match($filter, $file)) { |
|
| @@ 1258-1265 (lines=8) @@ | ||
| 1255 | $files['filelist'] = array(); |
|
| 1256 | ||
| 1257 | foreach (scandir($dir) as $file) { |
|
| 1258 | if ( |
|
| 1259 | ($file === '.' || $file === '..') |
|
| 1260 | || ($ignore_hidden && $file{0} === '.') |
|
| 1261 | || in_array($file, $exclude) |
|
| 1262 | || in_array("$dir/$file", $exclude) |
|
| 1263 | ) { |
|
| 1264 | continue; |
|
| 1265 | } |
|
| 1266 | ||
| 1267 | $dir = rtrim($dir, '/'); |
|
| 1268 | ||