Lines Matching full:file
2 * \file files.c
26 static void dump_fileinfo(LIBMTP_file_t *file)
28 printf("File ID: %u\n", file->item_id);
29 if (file->filename != NULL)
30 printf(" Filename: %s\n", file->filename);
33 if (file->filesize == (uint32_t) -1) {
34 printf(" None. (abstract file, size = -1)\n");
37 printf(" File size %llu (0x%016I64X) bytes\n", file->filesize, file->filesize);
39 printf(" File size %llu (0x%016llX) bytes\n",
40 (long long unsigned int) file->filesize,
41 (long long unsigned int) file->filesize);
44 printf(" Parent ID: %u\n", file->parent_id);
45 printf(" Storage ID: 0x%08X\n", file->storage_id);
46 printf(" Filetype: %s\n", LIBMTP_Get_Filetype_Description(file->filetype));
92 printf("Listing File Information on Device with name: (NULL)\n");
94 printf("Listing File Information on Device with name: %s\n", friendlyname);
105 LIBMTP_file_t *file, *tmp;
106 file = files;
107 while (file != NULL) {
108 dump_fileinfo(file);
109 tmp = file;
110 file = file->next;