|
NAMEToader::pathHelper - Various path related helpers.VERSIONVersion 0.1.0SYNOPSISuse Toader::pathHelper; my $foo = Toader::pathHelper->new; METHODSnewThis initiates the object.One argument is taken. That is the a Toader directory. my $foo=Toader::pathHelper->new($toaderDir); if($foo->error){ warn('error: '.$foo->error.":".$foo->errorString); } atRootThis checks if a directory is the root or not.back2rootThis returns relative path from specified directory, back to the Toader root directory.One argument is taken and that is the Toader directory under the root Toader directory. cleanupThis cleans up the path for a Toader directory.my $cleandir=$foo->cleanup($dir); if($foo->error){ warn('Error:'.$foo->error.': '.$foo->errorString); } relativeThis finds the relative path between two toader directories.Two arguments are accepted. Both are Toader directories. The first one is the directory to start in and the second is the directory to end in. my $relativePath=$foo->relative($fromDir, $toDir); if($foo->error){ warn('Error:'.$foo->error.': '.$foo->errorString); } relative2rootThis returns relative path from the root Toader directory.One argument is taken and that is the Toader directory under the root Toader directory. underRootThis checks if a specified Toader directory is under the Toader root directory.One argument is taken and that is a directory. This directory must be a Toader directory. The returned value is a boolean value. my $return=$self->underRoot($dir); if($foo->error){ warn('Error:'.$foo->error.': '.$foo->errorString); } underRootNTThis checks if a specified directory is under the Toader root directory. Unlike underRoot, no check is done on if it is a Toader directory or not.One argument is taken and that is a directory. The returned value is a boolean value. This does not check if it exists or not. my $return=$self->underRootNT($dir); if($foo->error){ warn('Error:'.$foo->error.': '.$foo->errorString); } ERROR CODES1, noDirSpecifiedNo directory specified.2, notAtoaderDirThe directory is not a Toader directory.3, otherToaderDirThe Toader directory in question is not under the Toader directory root it was initialized with.4, notAbleToFindRootUnable to find the root Toader directory.5, notUnderToaderRootThe directory is not under the root Toader directory.AUTHORZane C. Bowers-Hadley, "<vvelox at vvelox.net>"BUGSPlease report any bugs or feature requests to "bug-toader at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Toader>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.SUPPORTYou can find documentation for this module with the perldoc command.perldoc Toader::Render You can also look for information at:
ACKNOWLEDGEMENTSLICENSE AND COPYRIGHTCopyright 2011. Zane C. Bowers-Hadley.This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License. See http://dev.perl.org/licenses/ for more information.
Visit the GSP FreeBSD Man Page Interface. |