private function _hardCopy($originDir, $targetDir)
    {
        $filesystem = $this->getApplication()->getService('filesystem');

        $filesystem->mkdir($targetDir, 0777);
        // We use a custom iterator to ignore VCS files
        $filesystem->mirror(
            $originDir, $targetDir,
            Finder::create()->ignoreDotFiles(false)->in($originDir)
        );
    }