o added 0x01 to the list of file flags. a directory listing was not

showing any files if those files were 'protected' by the camera


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1608 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Donn Morrison
2001-02-24 19:49:07 +00:00
parent 2a6fda4461
commit 2b6ee0e1bf
2 changed files with 6 additions and 4 deletions

View File

@@ -271,7 +271,9 @@ int camera_file_list (Camera *camera, CameraList *list, char *folder)
while(i < data_len) {
/* files have 0x00,0x20, dirs have 0x10,0x30 */
if(ptr_data_buff[11] != 0x00 && ptr_data_buff[11] != 0x20) {
if(ptr_data_buff[11] != 0x00 &&
ptr_data_buff[11] != 0x20 &&
ptr_data_buff[11] != 0x01) {
ptr_data_buff += 20;
i += 20;
continue;

View File

@@ -23,9 +23,9 @@
#include "dc3200.h"
#include "library.h"
/*
#define DEBUG
*/
//#define DEBUG
/*
* dc3200_set_speed
*