'Return folder data in the form of a dictionary.
:param  folder:       folder item
:type   folder:       LibraryFolder
:returns:   dict with data about the folder
:rtype:     dictionary'

def get_folder_dict(self, trans, folder):

    folder_dict = folder.to_dict(view='element')
    folder_dict = trans.security.encode_all_ids(folder_dict, True)
    folder_dict['id'] = ('F' + folder_dict['id'])
    if (folder_dict['parent_id'] is not None):
        folder_dict['parent_id'] = ('F' + folder_dict['parent_id'])
    folder_dict['update_time'] = folder.update_time.strftime('%Y-%m-%d    %I:%M    %p')
    return folder_dict
