The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Module::New::Path

DESCRIPTION

This is to handle files/directories in a distribution.

METHODS

new

creates an object.

set_root

takes a path and sets a root/base directory of a distribution.

guess_root

looks for a Makefile.PL/Build.PL to make/build and makes there a root/base directory for the distribution.

file, dir

takes a (relative) path and returns a Path::Tiny object respectively.

create_dir, remove_dir

takes a path and creates/removes a (relative) directory. If the second argument is passed and true, the directory is regarded as an absolute one.

create_file

creates a file (and makes a parent directory if necessary).

remove_file

removes a file.

change_dir

takes a (relative) path and changes the current directory to there.

AUTHOR

Kenichi Ishigaki, <ishigaki@cpan.org>

COPYRIGHT AND LICENSE

Copyright (C) 2009 by Kenichi Ishigaki.

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