You are here

public function S3fsStreamWrapper::dir_readdir in S3 File System 7.3

Same name and namespace in other branches
  1. 7 S3fsStreamWrapper.inc \S3fsStreamWrapper::dir_readdir()
  2. 7.2 S3fsStreamWrapper.inc \S3fsStreamWrapper::dir_readdir()

Support for readdir().

Return value

string The next filename, or FALSE if there are no more files in the directory.

Overrides StreamWrapperInterface::dir_readdir

See also

http://php.net/manual/en/streamwrapper.dir-readdir.php

File

./S3fsStreamWrapper.inc, line 885
Drupal stream wrapper implementation for S3 File System.

Class

S3fsStreamWrapper
The stream wrapper class.

Code

public function dir_readdir() {
  $current = current($this->dir);
  if ($current) {
    next($this->dir);
  }
  return $current;
}