clear-space.py holds in a loop forever if you request more space be made than there are images on the camera.
This is probably only apparent if you run the script with the intent of deleting all images: 100 (%).
Camera has 99.5% free space
Camera has 99.5% free space
Camera has 99.5% free space
Camera has 99.5% free space
Camera has 99.5% free space
Camera has 99.5% free space
Camera has 99.5% free space
Camera has 99.5% free space
Camera has 99.5% free space
Camera has 99.5% free space
Camera has 99.5% free space
Camera has 99.5% free space
Camera has 99.5% free space
... you get the gist.
This is a simple fix, but I think is sufficient? By all means reject and re-write if you'd prefer to see it done differently.
Thanks. As you can guess, I'd never tried it on a nearly empty camera. I'd have changed line 96 from while True: to while files: but your change is just as effective.
clear-space.py holds in a loop forever if you request more space be made than there are images on the camera.
This is probably only apparent if you run the script with the intent of deleting all images: 100 (%).
... you get the gist.
This is a simple fix, but I think is sufficient? By all means reject and re-write if you'd prefer to see it done differently.
- G.