Lines Matching refs:folderlist
25 static void prune_empty_folders(LIBMTP_mtpdevice_t *device, LIBMTP_file_t *files, LIBMTP_folder_t *folderlist, int do_delete)
27 if(folderlist==NULL)
30 if(folderlist->child == NULL) { // this *might* be empty
36 if(file->parent_id == folderlist->folder_id) { // folder has a child
44 printf("empty folder %u (%s)\n",folderlist->folder_id,folderlist->name);
46 if (LIBMTP_Delete_Object(device,folderlist->folder_id) != 0) {
47 printf("Couldn't delete folder %u\n",folderlist->folder_id);
55 prune_empty_folders(device,files,folderlist->child,do_delete); // recurse down
56 prune_empty_folders(device,files,folderlist->sibling,do_delete); // recurse along