I am uploading a .png image to a GoDaddy hosted website. GoDaddy caches the image and it requires a manual cache flush to make the new image appear. My thought was to serialise the file name and reference that serialised file name in the index.html that goes up with it so the most recent image is displayed. What I need to do next is delete the previous image as a matter of good housekeeping.
I’m using Matthew Hall’s weewx-sftp report generator (which works a treat) but doesn’t provide an rm capability, hence the idea to call a python module with the sftp rm command in it.
Can anyone tell me if I can call a python script fromStdReport or any better ideas (apart from ditching GoDaddy)?