src/Composer/ScriptHandler.php
private static function mirrorDirectoryFromCore(string $directoryWithoutSlashes)
    {
        $directoryWithSlashes = '/' . $directoryWithoutSlashes . '/';

        $fileSystem = new Filesystem();
        $fileSystem->mirror(
            static::getCoreDirectory() . $directoryWithSlashes,
            static::getApplicationRoot() . $directoryWithSlashes,
            null,
            ['override' => true, 'delete' => false]
        );
    }
private static function mirrorDirectoryFromCore(string $directoryWithoutSlashes)
    {
        $directoryWithSlashes = '/' . $directoryWithoutSlashes . '/';

        $fileSystem = new Filesystem();
        $fileSystem->mirror(
            static::getCoreDirectory() . $directoryWithSlashes,
            static::getApplicationRoot() . $directoryWithSlashes,
            null,
            ['override' => true, 'delete' => false]
        );
    }
private static function mirrorDirectoryFromCore ( string $ directoryWithoutSlashes ) { $ directoryWithSlashes = '/' . $ directoryWithoutSlashes . '/' ; $ fileSystem = new Filesystem ( ) ; $ fileSystem -> mirror ( static :: getCoreDirectory ( ) . $ directoryWithSlashes , static :: getApplicationRoot ( ) . $ directoryWithSlashes , null , [ 'override' => true , 'delete' => false ] ) ; }
Copies a directory from the core package.

This method overwrites existing files, but will not delete any files.

This method must not be called for the core package itself.

@param string $directoryWithoutSlashes directory name (without any slashes) relative to the core package

@return void
Copies a directory from the core package .