/** * Copy a file * * @param string $newFullPath The full path of the copied file * @return string */ public function copy($newFullPath) { $contents = uFs::file_get_contents($this->fullPath); uFs::file_put_contents($newFullPath, $contents); $this->setFileName($newFullPath); return $newFullPath; }