src/Console/Commands/InitCommand.php
protected function copyStubs(array $files)
    {
        foreach ($files as $file => $to) {
            $to = "{$this->path}/{$to}";
            if (! file_exists($to) || $this->getOption('force') !== false) {
                copy("{$this->stubsDir}/{$file}", $to);
            } else {
                $this->line("TRIPALTEST: $to already exists.");
            }
        }
    }
protected function copyStubs(array $files)
    {
        foreach ($files as $file => $to) {
            $to = "{$this->path}/{$to}";
            if (! file_exists($to) || $this->getOption('force') !== false) {
                copy("{$this->stubsDir}/{$file}", $to);
            } else {
                $this->line("TRIPALTEST: $to already exists.");
            }
        }
    }
Copy stubs to their paths.

@param array $files List of files in the following structure: [STUB_FILENAME => NEW_PATH]