App-Tel
view release on metacpan or search on metacpan
local/lib/perl5/File/Remove.pm view on Meta::CPAN
unless ( $can_delete ) {
print "nowrite: $path\n" if DEBUG;
next;
}
if ( -f $path ) {
print "file: $path\n" if DEBUG;
unless ( -w $path ) {
# Make the file writable (implementation from File::Path)
(undef, undef, my $rp) = lstat $path or next;
$rp &= 07777; # Don't forget setuid, setgid, sticky bits
$rp |= 0600; # Turn on user read/write
chmod $rp, $path;
}
if ( $unlink ? $unlink->($path) : unlink($path) ) {
# Failed to delete the file
next if -e $path;
push @removes, $path;
}
} elsif ( -d $path ) {
( run in 0.661 second using v1.01-cache-2.11-cpan-5735350b133 )