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.