Small fix.

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2137 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Lutz Mueller
2001-08-30 10:51:59 +00:00
parent 2e2f938991
commit a6b26bfbda

View File

@@ -475,6 +475,8 @@ gp_camera_folder_list_files (Camera *camera, const char *folder,
result = gp_filesystem_list_files (camera->fs, folder, list);
CHECK_CLOSE (camera);
//Remove this when camera drivers are updated to use camera->fs
if (!list->count && !camera->functions->folder_list_files)
return (GP_OK);
if (list->count)
if (result != GP_ERROR_NOT_SUPPORTED)
return (result);
@@ -505,6 +507,8 @@ gp_camera_folder_list_folders (Camera *camera, const char* folder,
result = gp_filesystem_list_folders (camera->fs, folder, list);
CHECK_CLOSE (camera);
//Remove this when camera drivers are updated to use camera->fs
if (!list->count && !camera->functions->folder_list_folders)
return (GP_OK);
if (list->count)
if (result != GP_ERROR_NOT_SUPPORTED)
return (result);