def refresh_folder(self, update_parent_if_changed=False):
folder_id = getattr(self, '<STR_LIT>', None)<EOL>if self.root or folder_id is None:<EOL><INDENT>return False<EOL><DEDENT>folder = self.get_folder(folder_id=folder_id)<EOL>if folder is None:<EOL><INDENT>return False<EOL><DEDENT>self.name = folder.name<EOL>if folder.parent_id and self.parent_id:<EOL><INDENT>if folder.parent_id != self.parent_id:<EOL><INDENT>self.parent_id = folder.parent_id<EOL>self.parent = (self.get_parent_folder()<EOL>if update_parent_if_changed else None)<EOL><DEDENT><DEDENT>self.child_folders_count = folder.child_folders_count<EOL>self.unread_items_count = folder.unread_items_count<EOL>self.total_items_count = folder.total_items_count<EOL>self.updated_at = folder.updated_at<EOL>return True<EOL>
Re-download folder data
        Inbox Folder will be unable to download its own data (no folder_id)

        :param bool update_parent_if_changed: updates self.parent with new
         parent Folder if changed
        :return: Refreshed or Not
        :rtype: bool