App-FileCleanerByDiskUage
view release on metacpan or search on metacpan
is( count_existing(@$files), 2, 'symlinked top path: dry run left files intact' );
unlink($link);
}
# -------------------------------------------------------------------------
# missing paths are recorded, a valid path in the same call still works
# -------------------------------------------------------------------------
{
my ( $dir, $files ) = make_files(qw(a b));
my $missing = File::Spec->catdir( $dir, 'does_not_exist' );
my $r = App::FileCleanerByDiskUage->clean( path => [ $dir, $missing ], du => 101 );
is( scalar( @{ $r->{missing_paths} } ), 1, 'missing path recorded' );
is( scalar( @{ $r->{path} } ), 1, 'valid path retained' );
}
# -------------------------------------------------------------------------
# dry_run: report what would be removed but leave everything on disk
# -------------------------------------------------------------------------
{
( run in 1.089 second using v1.01-cache-2.11-cpan-9581c071862 )