Module::New::Path - Module::New::Path documentation


Module-New documentation  | view source Contained in the Module-New distribution.

Index


NAME

Top

Module::New::Path

DESCRIPTION

Top

This is to handle files/directories in a distribution.

METHODS

Top

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::Extended::File/Dir 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

Top

Kenichi Ishigaki, <ishigaki@cpan.org>

COPYRIGHT AND LICENSE

Top


Module-New documentation  | view source Contained in the Module-New distribution.