2 /** @package verysimple::IO */
5 * import supporting libraries
7 require_once("FileHelper.php");
10 * Provided object oriented access to a file system directory
12 * @package verysimple::IO
13 * @author Jason Hinkle
14 * @copyright 1997-2007 VerySimple, Inc.
15 * @license http://www.gnu.org/licenses/lgpl.html LGPL
27 * uri to directory to manipulate
29 function __construct($path)
35 * Returns an array of FileHelper objects
38 * @param string $pattern
39 * (not yet implemented)
42 public function GetFiles($pattern = "")
45 $dh = opendir($this->Path
);
47 while ($fname = readdir($dh)) {
48 if (is_file($this->Path
. $fname)) {
49 if ($pattern == "" ||
preg_match($pattern, $fname) > 0) {
50 $files [] = new FileHelper($this->Path
. $fname);