MediaWiki
master
FSFileBackendDirList.php
Go to the documentation of this file.
1
<?php
8
namespace
Wikimedia\FileBackend\FileIteration
;
9
10
class
FSFileBackendDirList
extends
FSFileBackendList
{
11
protected
function
filterViaNext
() {
12
while
( $this->iter->valid() ) {
13
if
( $this->iter->current()->isDot() || !$this->iter->current()->isDir() ) {
14
$this->iter->next();
// skip non-directories and dot files
15
}
else
{
16
break
;
17
}
18
}
19
}
20
}
21
23
class_alias( FSFileBackendDirList::class,
'FSFileBackendDirList'
);
Wikimedia\FileBackend\FileIteration\FSFileBackendDirList
Definition
FSFileBackendDirList.php:10
Wikimedia\FileBackend\FileIteration\FSFileBackendDirList\filterViaNext
filterViaNext()
Filter out items by advancing to the next ones.
Definition
FSFileBackendDirList.php:11
Wikimedia\FileBackend\FileIteration\FSFileBackendList
Wrapper around RecursiveDirectoryIterator/DirectoryIterator that catches exception or does any custom...
Definition
FSFileBackendList.php:25
Wikimedia\FileBackend\FileIteration
Definition
FileBackendStoreShardDirIterator.php:8
includes
libs
FileBackend
FileIteration
FSFileBackendDirList.php
Generated on Fri Jan 23 2026 17:26:17 for MediaWiki by
1.10.0