Oh dear, the correct solution is quite clear: obviously there is a list of created temp-files. This list has to be extended by the creation date of each file. If the file-modification-date is the original creation date, clear the file on exit, otherwise leave it or (that would be the cherry on the cake) list it and let the user decide.
Oh dear, the correct solution is quite clear: obviously there is a list of created temp-files. This list has to be extended by the creation date of each file. If the file-modificati on-date is the original creation date, clear the file on exit, otherwise leave it or (that would be the cherry on the cake) list it and let the user decide.