def set(self, folder: str, subscribed: bool) -> None:
        """Set the subscribed status of a folder."""
        if subscribed:
            self.add(folder)
        else:
            self.remove(folder)
def set ( self , folder : str , subscribed : bool ) -> None : if subscribed : self . add ( folder ) else : self . remove ( folder )
Set the subscribed status of a folder.