992cd4efb6
This was inserted as a class inbetween RecursiveArrayIterator and DirectoryIterator. Sadly our RecursiveArrayIterator implementaiton is crazy and calls into C++ which can't call back up to `parent::method()`. I'll fix RecursiveArrayIterator in another diff.
10 linhas
219 B
PHP
10 linhas
219 B
PHP
<?php
|
|
$sample_dir = __DIR__.'/../../sample_dir';
|
|
$it = new FilesystemIterator($sample_dir);
|
|
$ret = array();
|
|
foreach ($it as $fileinfo) {
|
|
$ret[] = $fileinfo->getFilename();
|
|
}
|
|
asort($ret);
|
|
var_dump(array_values($ret));
|