public function DrupalLocalStreamWrapper::dir_rewinddir
7.x stream_wrappers.inc | public DrupalLocalStreamWrapper::dir_rewinddir() |
Support for rewinddir().
Return value
TRUE on success.
Overrides StreamWrapperInterface::dir_rewinddir
See also
http://php.net/manual/streamwrapper.dir-rewinddir.php
File
- drupal-7.x/
includes/ stream_wrappers.inc, line 736 - Drupal stream wrapper interface.
Class
- DrupalLocalStreamWrapper
- Drupal stream wrapper base class for local files.
Code
public function dir_rewinddir() {
rewinddir($this->handle);
// We do not really have a way to signal a failure as rewinddir() does not
// have a return value and there is no way to read a directory handler
// without advancing to the next file.
return TRUE;
}