Subject: | WISHLIST - cleanup method to force cleanup of temp files/dirs |
It would be nice to have a cleanup() function or method to call to force cleanup of temporary files without waiting for the program to end.
Perhaps passing an argument will tell it what tempdir or file to clean up.
Usefulness of this:
(1) trapping signals and cleaning up when interrupted
(2) if size of temp data exceeds a desired limit, call cleanup manually
Rather than ask for the above complex behaviors to be added to the modules, it would be nice to have a manual cleanup function so that authors can implement these as needed.