src/Uploadcare/Api.php
public function copyFile($source, $target = null)
    {
        Helper::deprecate('2.0.0', '3.0.0', 'Use createLocalCopy() or createRemoteCopy() instead');
        if (!$target) {
            return $this->createLocalCopy($source);
        } else {
            return $this->createRemoteCopy($source, $target);
        }
    }
public function copyFile($source, $target = null)
    {
        Helper::deprecate('2.0.0', '3.0.0', 'Use createLocalCopy() or createRemoteCopy() instead');
        if (!$target) {
            return $this->createLocalCopy($source);
        } else {
            return $this->createRemoteCopy($source, $target);
        }
    }
Copy file

@deprecated 2.0.0 Use createLocalCopy() or createRemoteCopy() instead.
@param string $source CDN URL or file's uuid you need to copy.
@param string $target Name of custom storage connected to your project. Uploadcare storage is used if target is absent.
@return File|string
@throws \Exception