Would open a file to add work?
try: open(filename,'a').close()
... and catch any exception indicating that this failed?
Use with caution, I'm really not sure that I will not do anything wrong by mistake. For example, at least temporarily, you will lock the file, and I do not know what this will do with the binary.
Sideshow bob
source share