You are here

public function AFile::copyTo in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

2 calls to AFile::copyTo()
FileCommited::applySizes in vendor/edsdk/file-uploader-server-php/src/lib/file/FileCommited.php
FileUploaded::commit in vendor/edsdk/file-uploader-server-php/src/lib/file/FileUploaded.php

File

vendor/edsdk/file-uploader-server-php/src/lib/file/AFile.php, line 168

Class

AFile

Namespace

EdSDK\FileUploaderServer\lib\file

Code

public function copyTo($dstFile) {
  try {
    UtilsPHP::copyFile($this
      ->getFullPath(), $dstFile
      ->getFullPath());
  } catch (Exception $e) {
    error_log($e);
    throw new MessageException(Message::createMessage(Message::UNABLE_TO_COPY_FILE, $this
      ->getName(), $dstFile
      ->getName()));
  }
}