NAME

File::Path::Stderr - like File::Path but print to STDERR

SYNOPSIS

use File::Path::Stderr qw(make_path remove_tree);

make_path('foo/bar/baz', '/zug/zwang');
make_path('foo/bar/baz', '/zug/zwang', {
    verbose => 1,
    mode => 0711,
});

remove_tree('foo/bar/baz', '/zug/zwang');
remove_tree('foo/bar/baz', '/zug/zwang', {
    verbose => 1,
    error  => \my $err_list,
});

# legacy (interface promoted before v2.00)
mkpath('/foo/bar/baz');
mkpath('/foo/bar/baz', 1, 0711);
mkpath(['/foo/bar/baz', 'blurfl/quux'], 1, 0711);
rmtree('foo/bar/baz', 1, 1);
rmtree(['foo/bar/baz', 'blurfl/quux'], 1, 1);

# legacy (interface promoted before v2.06)
mkpath('foo/bar/baz', '/zug/zwang', { verbose => 1, mode => 0711 });
rmtree('foo/bar/baz', '/zug/zwang', { verbose => 1, mode => 0711 });

DESCRIPTION

This is a very, very simple wrapper around File::Path. All exported functions function exactly the same as they do in File::Path except rather than printing activity reports to the currently selected filehandle (which is normally STDOUT) the messages about what File::Path is doing are printed to STDERR.

Functions

The following functions from File::Path are currently supported:

mkpath
rmpath
make_path
remove_tree

By default, if you don't request a particular import list, mkpath and rmpath will be exported by default.

AUTHOR

Written by Mark Fowler <mark@twoshortplanks.com>

Copryright Mark Fowler 2003, 2012. All Rights Reserved.

Most of the SYNOPSIS stolen directly from File::Path. File::Path copyright (C) Charles Bailey, Tim Bunce and David Landgren 1995-2009. All rights reserved.

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

BUGS

None known.

Bugs should be reported to me via the CPAN RT system. http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File::Path::Stderr.

Alternatively, you can simply fork this project on github and send me pull requests. Please see http://github.com/2shortplanks/File-Path-Stderr

SEE ALSO

File::Path