Evo::Path
version 0.0405
say Evo::Path->from_string('a/b', '/base'); # /base/a/b say Evo::Path->from_string('/a/b//', '/base/'); # /base/a/b my $path = Evo::Path->from_string('part', '/base'); say $path->append('foo/bar'); # /base/part/foo/bar say $path->append('/foo/bar/'); # /base/part/foo/bar say $path->append_unsafe('/foo/../bar'); # /base/part/foo/../bar
Append child path to the current and return a new Evo::Path instance with the same base. This functions should protect you from file traverse vulnerabilities
base
Like append, but don't protect from .. parts in path
..
alexbyk.com
This software is copyright (c) 2016 by alexbyk.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Evo, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Evo
CPAN shell
perl -MCPAN -e shell install Evo
For more information on module installation, please visit the detailed CPAN module installation guide.