PyFunceble/directory_structure.py
def _restore_replace(self):
        """
        Check if we need to replace ".gitignore" to ".keep".

        :return: The replacement status.
        :rtype: bool
        """

        if PyFunceble.path.isdir(self.base + ".git"):
            # The `.git` directory exist.

            if "PyFunceble" not in Command("git remote show origin").execute():
                # PyFunceble is not in the origin.

                # We return True.
                return True

            # We return False.
            return False

        # The `.git` directory does not exist.

        # We return True.
        return True
def _restore_replace(self):
        """
        Check if we need to replace ".gitignore" to ".keep".

        :return: The replacement status.
        :rtype: bool
        """

        if PyFunceble.path.isdir(self.base + ".git"):
            # The `.git` directory exist.

            if "PyFunceble" not in Command("git remote show origin").execute():
                # PyFunceble is not in the origin.

                # We return True.
                return True

            # We return False.
            return False

        # The `.git` directory does not exist.

        # We return True.
        return True
def _restore_replace ( self ) : if PyFunceble . path . isdir ( self . base + ".git" ) : # The `.git` directory exist. if "PyFunceble" not in Command ( "git remote show origin" ) . execute ( ) : # PyFunceble is not in the origin. # We return True. return True # We return False. return False # The `.git` directory does not exist. # We return True. return True
Check if we need to replace ".gitignore" to ".keep".

        :return: The replacement status.
        :rtype: bool
Check if we need to replace . gitignore to . keep .