Message-ID: <
4661BDC8.6040102@landgren.net>
p4raw-id: //depot/perl@31329
rmtree(
'foo/bar/baz', '/zug/zwang',
- { verbose => 1, errors => \my $err_list }
+ { verbose => 1, error => \my $err_list }
);
# traditional
use File::Basename ();
use File::Spec ();
BEGIN {
- if ($] >= 5.006) {
- eval "use warnings";
- }
- else {
+ if ($] < 5.006) {
# can't say 'opendir my $dh, $dirname'
# need to initialise $dh
eval "use Symbol";
# IOW: File::Spec->catdir( qw(foo bar), File::Spec->updir ) eq 'foo'
# rather than foo/bar/..
skip "updir() canonicalises path on this platform", 2
- if $dir2 eq $tmp_base;
+ if $dir2 eq $tmp_base
+ or $^O eq 'cygwin';
@created = mkpath($dir2, {mask => 0700});
is(scalar(@created), 1, "make directory with trailing parent segment");