You are here

protected function FileSystemBackend::getFileSystemIterator in File Cache 8

Returns the file system iterator for the current cache bin.

Return value

\FilesystemIterator The iterator.

4 calls to FileSystemBackend::getFileSystemIterator()
FileSystemBackend::doDeleteAll in src/Cache/FileSystemBackend.php
Deletes all cache items in the bin.
FileSystemBackend::garbageCollection in src/Cache/FileSystemBackend.php
Performs garbage collection on a cache bin.
FileSystemBackend::invalidateAll in src/Cache/FileSystemBackend.php
Marks all cache items as invalid.
FileSystemBackend::removeBin in src/Cache/FileSystemBackend.php
Remove a cache bin.

File

src/Cache/FileSystemBackend.php, line 427

Class

FileSystemBackend
A cache backend that stores cache items as files on the file system.

Namespace

Drupal\filecache\Cache

Code

protected function getFileSystemIterator() {
  return new \FilesystemIterator($this->path, \FilesystemIterator::CURRENT_AS_PATHNAME | \FilesystemIterator::SKIP_DOTS);
}