Net-DirectConnect
view release on metacpan or search on metacpan
lib/Net/DirectConnect/filelist.pm view on Meta::CPAN
if $tth;
$self->{share_full}{$file} ||= $full_local;
=cut
$self->log( 'dev', 'adding downloaded file to share', $full, $tth ),
$self->share_add_file( $full, $tth ), $self->share_changed()
if !$self->{'file_recv_filelist'} and !$self->{'no_auto_share_downloaded'}; # unless $self->{'no_auto_share_downloaded'};
#TODO $self->{db}->insert_hash( 'filelist', $f ) if !$self->{no_sql} and $f->{tth};
;
};
$self->filelist_load() unless $standalone; # (caller)[0] ~~ __PACKAGE__;
#$self->log('initok');
return $self;
}
eval q{ #do
use lib '../..';
use Net::DirectConnect;
print "making\n";
__PACKAGE__->new(@ARGV)->{db}->upgrade(), exit if $ARGV[0] eq 'upgrade';
__PACKAGE__->new(@ARGV)->filelist_make(@ARGV),;
}, print $@ unless caller;
( run in 1.245 second using v1.01-cache-2.11-cpan-1e74a51a04c )