Skip Menu |

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

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

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

Bug Information
Severity: Important
Broken in: 0.17
Fixed in: 0.19



Subject: tempdir() not deleted at end of process
The documentation states "if the template is not specified, the temporary directory will be created in tmpdir() and will also be removed at program exit". However, tempdir() sets CLEANUP to 0 by default, so directories are never removed. I think the default should be CLEANUP => 1. Perhaps that should be limited to the case where no template is given, and CLEANUP => 0 when a template is supplied, but I think that CLEANUP => 1 is closer to people's default expectation. Temp means temporary unless otherwise specified.
I can't change the default now for backwards compatibility reasons but I have clarified the docs and added the OO interface (that does delete by default).