/** * Copy the content of this file to another. * * @param string $targetPath * @return \zool\file\File */ public function copyTo($targetPath) { $this->createDir(); //$targetPath = self::normalize($targetPath); // copy($this->path, $targetPath); $targetFile = new File($targetPath); $targetFile->content($this->content()); return $targetFile; }