private addIgnoredDir ( string $path ) | ||
$path | string |
private function addIgnoredDir($path)
{
$this->addEmptyDir($path);
if ($this->fs->exists($path . '/.gitignore')) {
return;
}
$this->fs->dumpFile($path . '/.gitignore', "# Create the folder and ignore its content\n*\n!.gitignore\n");
}