I am playing around with gphoto2 and I found that camera
object has a public function file_get_info()
. I would like to know:
- what this function does
- how to call it
But so far I have failed to find any information about it.
This is what I do:
import gphoto2 as gp
portInfoList = gp.PortInfoList()
portInfoList.load()
abilitiesList = gp.CameraAbilitiesList()
abilitiesList.load()
cams = abilitiesList.detect(portInfoList)
for name, addr in cams:
print("%s at port %s"%(name, addr))
idx = portInfoList.lookup_path(addr)
camera = gp.Camera()
camera.set_port_info(portInfoList[idx])
camera.init()
camera.file_get_info()
This is what I get:
TypeError: Camera_file_get_info expected at least 2 arguments, got 0
What is even more frustrating is that no matter how hard I google I cannot find anything about the Camera_file_get_info
function.
Am I approaching this wrong?