Arkade\S3\Model\MediaStorage\File\Storage\S3::copyFile PHP Метод

copyFile() публичный Метод

public copyFile ( $oldFilePath, $newFilePath )
    public function copyFile($oldFilePath, $newFilePath)
    {
        try {
            $this->client->copyObject(['Bucket' => $this->getBucket(), 'Key' => $newFilePath, 'CopySource' => $this->getBucket() . '/' . $oldFilePath, 'ACL' => 'public-read']);
        } catch (S3Exception $e) {
        }
        return $this;
    }