MediaWiki
master
FSFileBackendDirList.php
Go to the documentation of this file.
1
<?php
22
namespace
Wikimedia\FileBackend\FileIteration
;
23
24
class
FSFileBackendDirList
extends
FSFileBackendList
{
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
37
class_alias( FSFileBackendDirList::class,
'FSFileBackendDirList'
);
Wikimedia\FileBackend\FileIteration\FSFileBackendDirList
Definition
FSFileBackendDirList.php:24
Wikimedia\FileBackend\FileIteration\FSFileBackendDirList\filterViaNext
filterViaNext()
Filter out items by advancing to the next ones.
Definition
FSFileBackendDirList.php:25
Wikimedia\FileBackend\FileIteration\FSFileBackendList
Wrapper around RecursiveDirectoryIterator/DirectoryIterator that catches exception or does any custom...
Definition
FSFileBackendList.php:39
Wikimedia\FileBackend\FileIteration
Definition
FileBackendStoreShardDirIterator.php:22
includes
libs
filebackend
fileiteration
FSFileBackendDirList.php
Generated on Wed May 14 2025 16:24:32 for MediaWiki by
1.10.0