Mail-SPF
view release on metacpan or search on metacpan
sub process_extra_files {
my ($self, $dir) = @_;
$dir ||= $element;
File::Find::find(
{
wanted => sub {
$File::Find::prune = 1 if -d and /\.svn$/; # Exclude .svn/ dirs.
return if not -f; # Handle files only.
my $destination = $self->copy_if_modified(
from => $File::Find::name,
to => File::Spec->catfile($self->blib, $File::Find::name)
);
return if not defined($destination); # Already up to date?
chmod((stat($File::Find::name))[2], $destination)
or warn("Cannot set permissions on $destination: $!");
},
no_chdir => 1
},
( run in 2.223 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )