src/Composer/Util/RemoteFilesystem.php
public function copy($originUrl, $fileUrl, $fileName, $progress = true, $options = array())
    {
        return $this->get($originUrl, $fileUrl, $options, $fileName, $progress);
    }
public function copy($originUrl, $fileUrl, $fileName, $progress = true, $options = array())
    {
        return $this->get($originUrl, $fileUrl, $options, $fileName, $progress);
    }
Copy the remote file in local.

@param string $originUrl The origin URL
@param string $fileUrl   The file URL
@param string $fileName  the local filename
@param bool   $progress  Display the progression
@param array  $options   Additional context options

@return bool true