def _set_daemon_export(self, value):
        filename = os.path.join(self.path, self.DAEMON_EXPORT_FILE)
        fileexists = os.path.exists(filename)
        if value and not fileexists:
            touch(filename)
        elif not value and fileexists:
            os.unlink(filename)
dataset/ETHPy150Open kergoth/git-origin/git-python/lib/git/repo.py/Repo._set_daemon_export/original