Index: trunk/phase3/includes/filerepo/backend/FSFileBackend.php |
— | — | @@ -456,7 +456,9 @@ |
457 | 457 | public function __construct( $dir ) { |
458 | 458 | $this->suffixStart = strlen( realpath( $dir ) ) + 1; // size of "path/to/dir/" |
459 | 459 | try { |
460 | | - $this->iter = new RecursiveIteratorIterator( new RecursiveDirectoryIterator( $dir ) ); |
| 460 | + $flags = FilesystemIterator::CURRENT_AS_FILEINFO | FilesystemIterator::SKIP_DOTS; |
| 461 | + $this->iter = new RecursiveIteratorIterator( |
| 462 | + new RecursiveDirectoryIterator( $dir, $flags ) ); |
461 | 463 | } catch ( UnexpectedValueException $e ) { |
462 | 464 | $this->iter = null; // bad permissions? deleted? |
463 | 465 | } |