Skip Menu |

This queue is for tickets about the File-Temp CPAN distribution.

Report information
The Basics
Id: 6928
Status: resolved
Priority: 0/
Queue: File-Temp

People
Owner: Nobody in particular
Requestors: rrwo [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.14
Fixed in: 0.15



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.
Should be fixed in version 0.15. Sorry for the delay and thanks for the reports.