MediaWiki master
FSFileBackendFileList.php
Go to the documentation of this file.
1<?php
9
11 protected function filterViaNext() {
12 while ( $this->iter->valid() ) {
13 if ( !$this->iter->current()->isFile() ) {
14 $this->iter->next(); // skip non-files and dot files
15 } else {
16 break;
17 }
18 }
19 }
20}
21
23class_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...