MediaWiki master
FSFileBackendDirList.php
Go to the documentation of this file.
1<?php
23
25 protected function filterViaNext() {
26 while ( $this->iter->valid() ) {
27 if ( $this->iter->current()->isDot() || !$this->iter->current()->isDir() ) {
28 $this->iter->next(); // skip non-directories and dot files
29 } else {
30 break;
31 }
32 }
33 }
34}
35
37class_alias( FSFileBackendDirList::class, 'FSFileBackendDirList' );
filterViaNext()
Filter out items by advancing to the next ones.
Wrapper around RecursiveDirectoryIterator/DirectoryIterator that catches exception or does any custom...