Difference between revisions of "API:EPrints/TempDir"

From EPrints Documentation
Jump to: navigation, search
(New page: <!-- 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. -...)
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<!-- Pod2Wiki=_preamble_  
 
<!-- 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.
+
This page has been automatically generated from the EPrints 3.2 source. Any wiki changes made between the 'Pod2Wiki=*' and 'Edit below this comment' comments will be lost.
  -->{{Pod2Wiki}}{{API:Source|file=EPrints/TempDir.pm|package_name=EPrints::TempDir}}[[Category:API|TempDir]]<!-- End of Pod2Wiki -->
+
  -->{{API}}{{Pod2Wiki}}{{API:Source|file=perl_lib/EPrints/TempDir.pm|package_name=EPrints::TempDir}}[[Category:API|TEMPDIR]][[Category:API:EPrints/TempDir|TEMPDIR]]<div><!-- Edit below this comment -->
<!-- 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-&gt;new(
 
    TEMPLATE =&gt; 'tempXXXXX',
 
    DIR =&gt; 'mydir',
 
    UNLINK =&gt; 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=_private_ --><!-- Pod2Wiki=head_name -->
<!-- Pod2Wiki=head_methods -->=METHODS=
+
==NAME==
<!-- End of Pod2Wiki -->
+
EPrints::TempDir - Create temporary directories that are removed automatically
<!-- Pod2Wiki=item_new -->==new==
 
  
  EPrints::TempDir-&gt;new()
+
<!-- Edit below this comment -->
  
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= -->
<!-- Pod2Wiki=_postamble_ --><!-- End of Pod2Wiki -->
+
<!-- Pod2Wiki=head_description -->
 +
==DESCRIPTION==
 +
DEPRECATED
 +
 
 +
Use <code>File::Temp-&gt;newdir()</code>
 +
 
 +
<!-- Edit below this comment -->
 +
 
 +
 
 +
<!-- Pod2Wiki= -->
 +
<!-- Pod2Wiki=head_see_also -->
 +
==SEE ALSO==
 +
{{API:PodLink|file=File/Temp|package_name=File::Temp|section=|text=File::Temp}}
 +
 
 +
<!-- Edit below this comment -->
 +
 
 +
 
 +
<!-- Pod2Wiki= -->
 +
<!-- Pod2Wiki=head_copyright -->
 +
==COPYRIGHT==
 +
Copyright 2000-2011 University of Southampton.
 +
 
 +
This file is part of EPrints http://www.eprints.org/.
 +
 
 +
EPrints is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
 +
 
 +
EPrints is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
 +
 
 +
You should have received a copy of the GNU Lesser General Public License along with EPrints.  If not, see http://www.gnu.org/licenses/.
 +
 
 +
<!-- Edit below this comment -->
 +
 
 +
 
 +
<!-- Pod2Wiki= -->
 +
<!-- Pod2Wiki=_postamble_ -->
 +
<!-- Edit below this comment -->

Latest revision as of 11:35, 2 April 2012

EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects


API: Core API

Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki


NAME

EPrints::TempDir - Create temporary directories that are removed automatically


DESCRIPTION

DEPRECATED

Use File::Temp->newdir()


SEE ALSO

File::Temp


COPYRIGHT

Copyright 2000-2011 University of Southampton.

This file is part of EPrints http://www.eprints.org/.

EPrints is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

EPrints is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with EPrints. If not, see http://www.gnu.org/licenses/.