seeing-things / zwo

ZWO SDK and custom software for debugging and using it.
24 stars 4 forks source link

Delete .ser file if no frames are written to it #80

Closed bgottula closed 1 year ago

bgottula commented 1 year ago

capture will create a .ser file if a filename is provided. When the program ends, this file remains on disk even if zero frames were written to it. This is silly and creates extra friction if the program is re-started with the same filename later, since the program also tries to prevent accidentally overwriting existing files.

Delete the file on program end if no frames were written to it.