// Copy file from one location to another JFile::copy('/path/to/source/file.txt', '/path/to/destination/file.txt');
// Copy file from one location to another, omit overwrite warning JFile::copy('/path/to/source/file.txt', '/path/to/destination/file.txt', true);This will prevent your script from failing and throw warnings in case the file already existed. The package or library that provides the JFile copy function is the Joomla framework or CMS.