NAME

FileDirUtil - A Moose Role for basic File IO

SYNOPSIS

package FooBar;
use Moose;

with 'FileDirUtil';

sub BUILD {
   my $self = shift;
   $self->set_ifilebn;
}

DESCRIPTION

FileDirUtil is a convenience Moose Role for basic File IO, providing transparent access to Path::Class::File and Path::Class::Dir for input files and output directories, respectively, via the following attributes:

ifile

A string representing the path to an input file in platform-native syntax, e.g. 'moo/foo.bar'. This will be coerced into a Path::Class::File object.

odir

A Path::Class::Dir object or an ArrayRef specifying path segments of directories which will be joined to create a single Path::Class::Dir directory object.

SEE ALSO

Path::Class::Dir
Path::Class::File

AUTHOR

Michael T. Wolfinger, <michael at wolfinger.eu>

BUGS

Please report any bugs or feature requests to bug-filedirutil at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=FileDirUtil. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc FileDirUtil

You can also look for information at:

LICENSE AND COPYRIGHT

Copyright 2017 Michael T. Wolfinger <michael@wolfinger.eu> and <michael.wolfinger@univie.ac.at>

This program is free software; you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see http://www.gnu.org/licenses/.