Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete a file #150

Closed
rawexp opened this issue Jan 11, 2023 · 2 comments
Closed

delete a file #150

rawexp opened this issue Jan 11, 2023 · 2 comments

Comments

@rawexp
Copy link

rawexp commented Jan 11, 2023

I have my camera set to record RAW + JPG. I would like to retrieve the JPG and then delete it from the SD card.

I can achieve this through gphoto2 using a command such as: "gphoto2 -d /store_00020001/DCIM/100EOS1D/VQ4A4383.JPG"

Is there an equivalent function here? For example, something that would work like: gp.gp_file_delete('/store_00020001/DCIM/100EOS1D/VQ4A4383.JPG')

@jim-easterbrook
Copy link
Owner

jim-easterbrook commented Jan 11, 2023

The function's called gp_camera_file_delete, as documented here: http://www.gphoto.org/doc/api/gphoto2-camera_8h.html

The clear-space.py example shows its use.

@rawexp
Copy link
Author

rawexp commented Jan 11, 2023

wonderful, thanks for the quick response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants