/** * Constructs a new FileFolderIterator for a specified path (folder). * * The default behaviour is set. The iterator will return objects and no filter will be applied. * * @param string Path to a folder */ public function __construct($path) { $this->mode = FileSystem::RETURN_OBJECTS; $this->filter = null; $this->path = FileSystem::unifyPath($path).Folder::SEPARATOR; $this->handle = opendir($this->path); $this->current = false; }
/** * @todo Implement */ protected function ftpizePath($path) { $path = FileSystem::unifyPath($path); return str_ireplace($webRoot, $ftpRoot, $path); }