AC-MrGamoo

 view release on metacpan or  search on metacpan

lib/AC/MrGamoo/API/Del.pm  view on Meta::CPAN

use AC::MrGamoo::Scriblr;
use strict;

sub handler {
    my $class   = shift;
    my $io      = shift;
    my $proto   = shift;
    my $req     = shift;
    my $content = shift;

    # validate filename
    my $file = filename($req->{filename});
    debug("deleting file $file");

    if( $file && -f $file ){
        unlink $file;
    }

    if( -f $file ){
        reply( 500, 'Error', $io, $proto, $req );
    }else{

lib/AC/MrGamoo/API/Xfer.pm  view on Meta::CPAN


my $MSGID = $$;

sub handler {
    my $class   = shift;
    my $io      = shift;
    my $proto   = shift;
    my $req     = shift;
    my $content = shift;

    # validate filename
    if( $req->{filename} =~ m%/\.|^\.% ){
        reply( 500, 'Error', $io, $proto, $req );
        return;
    }

    # new retry
    debug("starting file xfer $req->{copyid} => $req->{filename}");

    # start working on the copy
    my $x = AC::MrGamoo::Retry->new(

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

( run in 1.434 second using v1.00-cache-2.02-grep-82fe00e-cpan-24a475fd873 )