Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int gp_camera_folder_delete_all ( Camera *  camera,
const char *  folder,
GPContext context 
)

gp_camera_folder_delete_all: : a Camera : a folder : a GPContext

Deletes all files in a given .

Return value: a gphoto2 error code

Definition at line 1100 of file gphoto2-camera.c.

References gp_filesystem_delete_all().

{
      gp_log (GP_LOG_DEBUG, "gphoto2-camera", "Deleting all files in "
            "'%s'...", folder);

      CHECK_NULL (camera && folder);
      CHECK_INIT (camera, context);

      CHECK_RESULT_OPEN_CLOSE (camera, gp_filesystem_delete_all (camera->fs,
                                    folder, context), context);

      CAMERA_UNUSED (camera, context);
      return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index