Logo Search packages:      
Sourcecode: libgphoto2 version File versions

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

Deletes all files in a given folder.

Parameters:
camera a Camera
folder a folder
context a GPContext
Returns:
a gphoto2 error code

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

References CHECK_NULL, gp_filesystem_delete_all(), gp_log(), GP_LOG_DEBUG, and GP_OK.

{
      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