Kenichi Ishigaki > Module-New-0.10 > Module::New::Path

Download:
Module-New-0.10.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

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::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 ^

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.

syntax highlighting: