/** * Returns an iterator over objects whose key starting with the common * prefix represented by this iterator's current key. * * @return Services_Amazon_S3_ObjectIterator * @throws Services_Amazon_S3_Exception */ public function getChildren() { if ($this->_current instanceof Services_Amazon_S3_Prefix) { return $this->_current->getObjects(); } }
/** * Copies data from this object to another S3 object * * @param Services_Amazon_S3_Resource_Object $target the object to * which this object is copied. * @param boolean $copyMetadata optional. Whether * or not to copy the metadata to the <kbd>$target</kbd> or use the * metadata specified on this target. If true, the metadata is * copied from this object. If false, the metadata set on the * on target is used. Defaults to true. * * @return void */ public function copyTo(Services_Amazon_S3_Resource_Object $target, $copyMetadata = true) { $target->copyFrom($this, $copyMetadata); }