summaryrefslogtreecommitdiff
path: root/camlibs/kodak
diff options
context:
space:
mode:
authorDonn Morrison <dmorriso@gulf.uvic.ca>2001-03-11 02:22:30 +0000
committerDonn Morrison <dmorriso@gulf.uvic.ca>2001-03-11 02:22:30 +0000
commitdf6d8433b1fed5daf0fba237ff40a1d3fb26bdaa (patch)
tree286e45b19d6093980732b3dcacec7b229a1d7a47 /camlibs/kodak
parentac9691dfb0e87d080a16baf5e8ca70000e1616bb (diff)
downloadlibgphoto2-df6d8433b1fed5daf0fba237ff40a1d3fb26bdaa.tar.gz
fixed unseeable directories/files after reading the microsoft fat
specification white paper git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@1701 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/kodak')
-rw-r--r--camlibs/kodak/dc3200/dc3200.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/camlibs/kodak/dc3200/dc3200.c b/camlibs/kodak/dc3200/dc3200.c
index 0b71feaee..752546920 100644
--- a/camlibs/kodak/dc3200/dc3200.c
+++ b/camlibs/kodak/dc3200/dc3200.c
@@ -199,8 +199,8 @@ int camera_folder_list (Camera *camera, CameraList *list, char *folder)
i = 0;
while(i < data_len) {
- /* files have 0x00,0x01,0x20, dirs have 0x10,0x30 */
- if(ptr_data_buff[11] != 0x10 && ptr_data_buff[11] != 0x30) {
+ /* directories have 0x10 in their attribute */
+ if(ptr_data_buff[11] & 0x10) {
ptr_data_buff += 20;
i += 20;
continue;
@@ -266,10 +266,8 @@ int camera_file_list (Camera *camera, CameraList *list, char *folder)
i = 0;
while(i < data_len) {
- /* files have 0x00,0x01,0x20, dirs have 0x10,0x30 */
- if(ptr_data_buff[11] != 0x00 &&
- ptr_data_buff[11] != 0x20 &&
- ptr_data_buff[11] != 0x01) {
+ /* directories have 0x10 in their attribute */
+ if(!(ptr_data_buff[11] & 0x10)) {
ptr_data_buff += 20;
i += 20;
continue;