WordPress at a glance
function is not described

Automattic\Jetpack\Autoloader

AutoloadFileWriter::copyAutoloaderFiles() public WC 1.0

Copies autoloader files and replaces any placeholders in them.

{} It's a method of the class: AutoloadFileWriter{}

No Hooks.

Return

null. Nothing.

Usage

$result = AutoloadFileWriter::copyAutoloaderFiles( $io, $outDir, $suffix );
$io(IOinterface|null) (required)
An IO for writing to.
$outDir(string) (required)
The directory to place the autoloader files in.
$suffix(string) (required)
The suffix to use in the autoloader's namespace.

Code of AutoloadFileWriter::copyAutoloaderFiles() WC 5.3.0

<?php
public static function copyAutoloaderFiles( $io, $outDir, $suffix ) {
	$renameList = array(
		'autoload.php' => '../autoload_packages.php',
	);
	$ignoreList = array(
		'AutoloadGenerator.php',
		'AutoloadProcessor.php',
		'CustomAutoloaderPlugin.php',
		'ManifestGenerator.php',
		'AutoloadFileWriter.php',
	);

	// Copy all of the autoloader files.
	$files = scandir( __DIR__ );
	foreach ( $files as $file ) {
		// Only PHP files will be copied.
		if ( substr( $file, -4 ) !== '.php' ) {
			continue;
		}

		if ( in_array( $file, $ignoreList, true ) ) {
			continue;
		}

		$newFile = isset( $renameList[ $file ] ) ? $renameList[ $file ] : $file;
		$content = self::prepareAutoloaderFile( $file, $suffix );

		$written = file_put_contents( $outDir . '/' . $newFile, $content );
		if ( $io ) {
			if ( $written ) {
				$io->writeError( "  <info>Generated: $newFile</info>" );
			} else {
				$io->writeError( "  <error>Error: $newFile</error>" );
			}
		}
	}
}