public static function copyFile($filename, $newFilePath, $newFileName = null, $path = null) { $fileObj = new \erdiko\core\datasource\File(); return $fileObj->copy($filename, $newFilePath, $newFileName, $path); }