private function replaceLinkByCopy($path, array $dirsToKeep = array())
{
$target = Path::makeAbsolute($this->readLink($path), Path::getDirectory($path));
$this->filesystem->remove($path);
$this->filesystem->mkdir($path);
$this->symlinkMirror($target, $path, $dirsToKeep);
}