(imapsets, filetype)
return filename + imapsets.hash.hexdigest()
Set the filename of cached created files.

        If `filetype` is password, the file name start with `.isbg-`, else
        it starts with the filetype. A hash from the imapsets it's appended
        to it. The path of the file will be ``xdg_cache_home``/isbg/

        Args:
            imapsets (isbg.imaputils.ImapSettings): Imap setings instance.
            filetype (str): The file type.
        Returns:
            str: The full file path.
Set the filename of cached created files.
Set the filename of cached created files .
def set_filename(imapsets, filetype):
        """Set the filename of cached created files.

        If `filetype` is password, the file name start with `.isbg-`, else
        it starts with the filetype. A hash from the imapsets it's appended
        to it. The path of the file will be ``xdg_cache_home``/isbg/

        Args:
            imapsets (isbg.imaputils.ImapSettings): Imap setings instance.
            filetype (str): The file type.
        Returns:
            str: The full file path.

        """
        if filetype == "password":
            filename = os.path.join(xdg_cache_home, "isbg", ".isbg-")
        else:
            filename = os.path.join(xdg_cache_home, "isbg", filetype)
        return filename + imapsets.hash.hexdigest()
def set_filename ( imapsets , filetype ) : if filetype == "password" : filename = os . path . join ( xdg_cache_home , "isbg" , ".isbg-" ) else : filename = os . path . join ( xdg_cache_home , "isbg" , filetype ) return filename + imapsets . hash . hexdigest ( )