public function AFile::copyTo in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2
Copies file to another place.
2 calls to AFile::copyTo()
- FileCommited::applySizes in src/
Flmngr/ FileUploaderServer/ lib/ file/ FileCommited.php - Apply sized method.
- FileUploaded::commit in src/
Flmngr/ FileUploaderServer/ lib/ file/ FileUploaded.php - Commits a file.
File
- src/
Flmngr/ FileUploaderServer/ lib/ file/ AFile.php, line 287
Class
- AFile
- Abstract file item both for just uploaded and fully commited files. Contains some handy method for accessing files info programmatically.
Namespace
Drupal\n1ed\Flmngr\FileUploaderServer\lib\fileCode
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()));
}
}