PyFunceble/clean.py
def almost_everything(self, clean_all=False):
        """
        Delete almost all discovered files.

        :param clean_all:
            Tell the subsystem if we have to clean everything instesd
            of almost everything.
        :type clean_all: bool
        """

        # We get the list of file to delete.
        to_delete = self.file_to_delete()

        if clean_all:  # pragma: no cover
            to_delete.extend(self.databases_to_delete())

        for file in to_delete:
            # We loop through the list of file to delete.

            # And we delete the currently read file.
            File(file).delete()

        if clean_all:  # pragma: no cover
            Load(PyFunceble.CURRENT_DIRECTORY)
def almost_everything(self, clean_all=False):
        # We get the list of file to delete.
        to_delete = self.file_to_delete()

        if clean_all:  # pragma: no cover
            to_delete.extend(self.databases_to_delete())

        for file in to_delete:
            # We loop through the list of file to delete.

            # And we delete the currently read file.
            File(file).delete()

        if clean_all:  # pragma: no cover
            Load(PyFunceble.CURRENT_DIRECTORY)
def almost_everything ( self , clean_all = False ) : # We get the list of file to delete. to_delete = self . file_to_delete ( ) if clean_all : # pragma: no cover to_delete . extend ( self . databases_to_delete ( ) ) for file in to_delete : # We loop through the list of file to delete. # And we delete the currently read file. File ( file ) . delete ( ) if clean_all : # pragma: no cover Load ( PyFunceble . CURRENT_DIRECTORY )
Delete almost all discovered files.

        :param clean_all:
            Tell the subsystem if we have to clean everything instesd
            of almost everything.
        :type clean_all: bool
Delete almost all discovered files .