API:EPrints/TempDir
EPrints 3 Reference: Directory Structure - Metadata Fields - Repository Configuration - XML Config Files - XML Export Format - EPrints data structure - Core API - Data Objects
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
Contents
NAME
EPrints::TempDir - Create temporary directories that can automatically be removed
SYNOPSIS
use EPrints::TempDir; my $dir = EPrints::TempDir->new( TEMPLATE => 'tempXXXXX', DIR => 'mydir', UNLINK => 1); opendir DIR, "$dir"; # Stringifies object
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.
METHODS
new
EPrints::TempDir->new()
Create a temporary directory (see File::Temp::tempdir for a description of the arguments);