MediaWiki master
FSFileBackendFileList.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()->isFile() ) {
28 $this->iter->next(); // skip non-files and dot files
29 } else {
30 break;
31 }
32 }
33 }
34}
35
37class_alias( FSFileBackendFileList::class, 'FSFileBackendFileList' );
filterViaNext()
Filter out items by advancing to the next ones.
Wrapper around RecursiveDirectoryIterator/DirectoryIterator that catches exception or does any custom...