jim-easterbrook / python-gphoto2

Python interface to libgphoto2
GNU Lesser General Public License v3.0
359 stars 59 forks source link

best way to get free space on memory card #73

Closed pdeman closed 5 years ago

pdeman commented 5 years ago

Hi, what is the best way to get the free space available on the memory card ?


text = gp.check_result(gp.gp_camera_get_summary(camera))```

and then re.search('Free Space') ?

or is there a "better way" ? (to start a python function when free space become to low)
jim-easterbrook commented 5 years ago

Have you tried gp_camera_get_storageinfo?

pdeman commented 5 years ago

ok thanks, that's what I was looking for but I haven't got the good "keyword".