Arquivos
hhvm/hphp/system/php/file_system/Directory.php
T
Drew Paroski e6b6aa0b09 Clean up the hphp/system folder
I noticed that directorty structure of hphp/system was a bit scattered, so
I consolidated things to reduce the total number of folders and to put
related things together with each other.

This diff moves the contents of "hphp/system/classes_hhvm" into
"hphp/system", it moves the contents of "hphp/system/lib" into
"hphp/system", moves "hphp/idl" to "hphp/system/idl", and moves the
contents of "hphp/system/globals" into "hphp/system/idl".
2013-06-15 23:29:49 -07:00

32 linhas
589 B
PHP

<?php
// This doc comment block generated by idl/sysdoc.php
/**
* ( excerpt from http://php.net/manual/en/class.directory.php )
*
* Instances of Directory are created by calling the dir() function, not
* by the new operator.
*
*/
class Directory {
public $path;
public $handle;
public function __construct($path) {
$this->path = $path;
$this->handle = opendir($path);
}
public function read() {
return readdir($this->handle);
}
public function rewind() {
rewinddir($this->handle);
}
public function close() {
closedir($this->handle);
}
}