def update_folder_name(self, name, update_folder_data=True):
if self.root:<EOL><INDENT>return False<EOL><DEDENT>if not name:<EOL><INDENT>return False<EOL><DEDENT>url = self.build_url(<EOL>self._endpoints.get('<STR_LIT>').format(id=self.folder_id))<EOL>response = self.con.patch(url, data={self._cc('<STR_LIT>'): name})<EOL>if not response:<EOL><INDENT>return False<EOL><DEDENT>self.name = name<EOL>if not update_folder_data:<EOL><INDENT>return True<EOL><DEDENT>folder = response.json()<EOL>self.name = folder.get(self._cc('<STR_LIT>'), '<STR_LIT>')<EOL>self.parent_id = folder.get(self._cc('<STR_LIT>'), None)<EOL>self.child_folders_count = folder.get(self._cc('<STR_LIT>'), <NUM_LIT:0>)<EOL>self.unread_items_count = folder.get(self._cc('<STR_LIT>'), <NUM_LIT:0>)<EOL>self.total_items_count = folder.get(self._cc('<STR_LIT>'), <NUM_LIT:0>)<EOL>self.updated_at = dt.datetime.now()<EOL>return True<EOL>
Change this folder name

        :param str name: new name to change to
        :param bool update_folder_data: whether or not to re-fetch the data
        :return: Updated or Not
        :rtype: bool