2e5d5fbb15
Yay, back to the glory days of having repo tests. The problem was that we weren't being smart about ##__DIR__.'/some/string'## during the compile step. Now we are.
17 linhas
471 B
PHP
17 linhas
471 B
PHP
<?php
|
|
|
|
include __DIR__.'/../../../test/sample_dir/fix_mtimes.inc';
|
|
|
|
$path = "test/sample_dir/";
|
|
$files = array(); // order changes per machine
|
|
foreach (new RecursiveIteratorIterator(
|
|
new RecursiveDirectoryIterator($path,
|
|
RecursiveDirectoryIterator::KEY_AS_PATHNAME),
|
|
RecursiveIteratorIterator::CHILD_FIRST) as $file => $info) {
|
|
if ($info->isDir() && substr($file,-1)!='.') {
|
|
$files[] = $file."\n";
|
|
}
|
|
}
|
|
asort($files);
|
|
var_dump(array_values($files));
|