Subject: | extractTree assumes $dest ends in '/' |
extractTree assumes that the destination ends in '/'.
If, for example, I try this:
$zip->extractTree(undef,'/tmp/foobar');
on a zip containing:
some-dir/
some-dir/foo
Instead of getting the expected:
/tmp/foobar/some-dir/foo
I get:
/tmp/foobarsome-dir/foo
If I instead do:
$zip->extractTree(undef,'/tmp/foobar/');
then things work as expected.