Skip to content

Commit

Permalink
document the different cleanup time on temp dirs/files
Browse files Browse the repository at this point in the history
UNLINK sets File::Temp objects to be unlinked when the object goes away,
but tempdirs are cleaned up at exit time by an END block.
  • Loading branch information
rjbs committed Aug 16, 2016
1 parent 405aabb commit b528cd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Path/Tiny.pm
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,8 @@ The tempfile path object will be normalized to have an absolute path, even if
created in a relative directory using C<DIR>.
C<tempdir> is just like C<tempfile>, except it calls
C<< File::Temp->newdir >> instead.
C<< File::Temp->newdir >> instead. Temporary directories are purged when
the program exits, rather than when the Path::Tiny object is destroyed.
Both C<tempfile> and C<tempdir> may be exported on request and used as
functions instead of as methods.
Expand Down

0 comments on commit b528cd4

Please sign in to comment.