From EPrints Documentation
|
|
Line 1: |
Line 1: |
− | <!-- Pod2Wiki=_preamble_
| |
− | This page has been automatically generated from the EPrints source. Any wiki changes made between the 'Pod2Wiki=*' and 'End of Pod2Wiki' comments will be lost.
| |
− | -->{{Pod2Wiki}}{{API:Source|file=EPrints/TempDir.pm|package_name=EPrints::TempDir}}[[Category:API|TempDir]]<!-- End of Pod2Wiki -->
| |
− | <!-- Pod2Wiki=head_name -->=NAME=
| |
− | EPrints::TempDir - Create temporary directories that can automatically be removed
| |
| | | |
− | <!-- End of Pod2Wiki -->
| |
− | <!-- Pod2Wiki=head_synopsis -->=SYNOPSIS=
| |
− | use EPrints::TempDir;
| |
− |
| |
− | my $dir = EPrints::TempDir->new(
| |
− | TEMPLATE => 'tempXXXXX',
| |
− | DIR => 'mydir',
| |
− | UNLINK => 1);
| |
− |
| |
− | opendir DIR, "$dir"; # Stringifies object
| |
− |
| |
− | <!-- End of Pod2Wiki -->
| |
− | <!-- Pod2Wiki=head_description -->=DESCRIPTION=
| |
− | This module is basically a clone of File::Temp, but provides an object-interface to directory creation. When the object goes out of scope (and UNLINK is specified) the directory will automatically get removed.
| |
− |
| |
− | <!-- End of Pod2Wiki -->
| |
− | <!-- Pod2Wiki=head_methods -->=METHODS=
| |
− | <!-- End of Pod2Wiki -->
| |
− | <!-- Pod2Wiki=item_new -->==new==
| |
− |
| |
− | EPrints::TempDir->new()
| |
− |
| |
− | Create a temporary directory (see {{API:PodLink|file=File/Temp|package_name=File::Temp|section=|text=File::Temp}}::tempdir for a description of the arguments);
| |
− |
| |
− | <!-- End of Pod2Wiki -->
| |
− | <!-- Pod2Wiki=_postamble_ --><!-- End of Pod2Wiki -->
| |
Revision as of 15:41, 12 August 2009