Command/ThemeAssetsInstallCommand.php
private function _hardCopy(string $originDir, string $targetDir): string
    {
        $this->filesystem->mkdir($targetDir, 0777);
        // We use a custom iterator to ignore VCS files
        $this->filesystem->mirror($originDir, $targetDir, Finder::create()->ignoreDotFiles(false)->in($originDir));

        return AssetsInstallCommand::METHOD_COPY;
    }
private function _hardCopy(string $originDir, string $targetDir): string
    {
        $this->filesystem->mkdir($targetDir, 0777);
        // We use a custom iterator to ignore VCS files
        $this->filesystem->mirror($originDir, $targetDir, Finder::create()->ignoreDotFiles(false)->in($originDir));

        return AssetsInstallCommand::METHOD_COPY;
    }
Copies origin to target.

@param string $originDir
@param string $targetDir

@return string