File-Path

 view release on metacpan or  search on metacpan

t/Path.t  view on Meta::CPAN


{
    mkdir 'solo', 0755;
    chdir 'solo';
    open my $f, '>', 'foo.dat';
    close $f;
    my $before = count(curdir());

    cmp_ok($before, '>', 0, "ARGV $before");
    {
        local @ARGV = (1);
        mkpath('3rd', !shift, 0755);
    }

    is(count(curdir()), $before + 1, "third after $before");

    $before = count(curdir());
    {
        local @ARGV = (1);
        mkpath('4th', !shift, 0755);
    }

    is(count(curdir()), $before + 1, "fourth after $before");

    chdir updir();
    rmtree 'solo';
}

SKIP: {

 view all matches for this distribution
 view release on metacpan -  search on metacpan

( run in 0.917 second using v1.00-cache-2.02-grep-82fe00e-cpan-c9a218a2bbc )