/** * @see inc/PMF_Attachment/Filesystem/PMF_Attachment_Filesystem_Entry#copyTo($entry) */ public function copyTo($target) { $retval = false; if (is_string($target)) { $target = new PMF_Attachment_Filesystem_File_Vanilla($target, self::MODE_WRITE); } else { $target->setMode(self::MODE_WRITE); } if ($target->isOk()) { while (!$this->eof()) { $target->putChunk($this->getChunk()); } $retval = true; } return $retval; }