sprintf('Unable to find asset. Path: "%s"',
$assetPath) );
} $files =
(new Finder())->
files()->
in($assetPath);
$assets =
[];
foreach ($files as $file) { $relativePathname =
$file->
getRelativePathname();
$assetDir =
basename($assetPath);
$assets[] =
new CopyBatchInput( $assetPath . \DIRECTORY_SEPARATOR .
$relativePathname,
[ $outputPath . \DIRECTORY_SEPARATOR .
$assetDir . \DIRECTORY_SEPARATOR .
$relativePathname,
] );
} return $assets;
}}