No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2022-11-17 16:51:51 +00:00
dist Add explicit Provides to spec 2022-11-17 16:51:51 +00:00
lib/File handle basename and undefined in new, add more overloads 2021-09-12 14:59:07 +01:00
tests handle basename and undefined in new, add more overloads 2021-09-12 14:59:07 +01:00
LICENSE Initial code cut 2021-09-07 17:00:57 +01:00
Makefile.PL Use parent class method to create dir. allow basename-only directory as $TMPDIR subdir 2021-09-11 16:23:47 +01:00
README.md handle basename and undefined in new, add more overloads 2021-09-12 14:59:07 +01:00

NAME

File::TempTree - Create temporary directory and steward it

VERSION

version 1.3

SYNOPSIS

# Create a temporary directory object
$tmpdir = File::TempTree->new( 'directory' => "/var/tmp/myapp.$$" );

$tmpfile = $tmpdir->tempname;
print "Creating new temp file as $tempfile\n";
open( $of, $tmpfile, "w" );

# Deletes all files and directories under original directory
# and then deletes the directory itself
$tmpdir = undef;

# Create a named sub-directory under $TMPDIR (will have unique sequence added)
$tmpdir = File::TempTree->new( 'directory' => "myapp.$$" );

# Create a unique named sub-directory under $TMPDIR
$tmpdir = File::TempTree->new();


# Create new subdirectory

$inbound = $tmpdir->ensure_work_subdir( 'inbound' );

$outboundjob = $tmpdir->ensure_work_subdir( 'outbound', $job_nbr );

DESCRIPTION

TODO: slightly more detailed description

PROPERTIES

  • TODO: some property

    TODO: some property description

METHODS

  • TODO: some_method()

    TODO: description of the method

COMPATIBILITY

  • File::TempTree requires File::DirScan and Class::Accessorize.

AUTHOR

Bernard Quatermass toolsmith@quatermass.co.uk

COPYRIGHT AND LICENSE

This software is copyright (c) 2021 by Bernard Quatermass.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.