| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
package AnyEvent::FTP::Server::Role::Old; |
|
2
|
|
|
|
|
|
|
|
|
3
|
23
|
|
|
23
|
|
14366
|
use strict; |
|
|
23
|
|
|
|
|
58
|
|
|
|
23
|
|
|
|
|
757
|
|
|
4
|
23
|
|
|
23
|
|
143
|
use warnings; |
|
|
23
|
|
|
|
|
50
|
|
|
|
23
|
|
|
|
|
616
|
|
|
5
|
23
|
|
|
23
|
|
433
|
use 5.010; |
|
|
23
|
|
|
|
|
91
|
|
|
6
|
23
|
|
|
23
|
|
185
|
use Moo::Role; |
|
|
23
|
|
|
|
|
63
|
|
|
|
23
|
|
|
|
|
188
|
|
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
# ABSTRACT: Role for old archaic FTP server commands |
|
9
|
|
|
|
|
|
|
our $VERSION = '0.17'; # VERSION |
|
10
|
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
has syst => ( |
|
13
|
|
|
|
|
|
|
is => 'rw', |
|
14
|
|
|
|
|
|
|
lazy => 1, |
|
15
|
|
|
|
|
|
|
default => sub { 'UNIX Type: L8' } |
|
16
|
|
|
|
|
|
|
); |
|
17
|
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
|
|
19
|
5
|
|
|
5
|
0
|
23
|
sub help_allo { 'ALLO is not implemented (ignored)' } |
|
20
|
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub cmd_allo |
|
22
|
|
|
|
|
|
|
{ |
|
23
|
4
|
|
|
4
|
0
|
10
|
my($self, $con, $req) = @_; |
|
24
|
4
|
|
|
|
|
13
|
$con->send_response(202 => 'No storage allocation necessary'); |
|
25
|
4
|
|
|
|
|
20
|
$self->done; |
|
26
|
|
|
|
|
|
|
} |
|
27
|
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
|
|
29
|
5
|
|
|
5
|
0
|
40
|
sub help_noop { 'NOOP' } |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub cmd_noop |
|
32
|
|
|
|
|
|
|
{ |
|
33
|
6
|
|
|
6
|
0
|
26
|
my($self, $con, $req) = @_; |
|
34
|
6
|
|
|
|
|
47
|
$con->send_response(200 => 'NOOP command successful'); |
|
35
|
6
|
|
|
|
|
31
|
$self->done; |
|
36
|
|
|
|
|
|
|
} |
|
37
|
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
|
|
39
|
5
|
|
|
5
|
0
|
42
|
sub help_syst { 'SYST' } |
|
40
|
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
sub cmd_syst |
|
42
|
|
|
|
|
|
|
{ |
|
43
|
3
|
|
|
3
|
0
|
9
|
my($self, $con, $req) = @_; |
|
44
|
3
|
|
|
|
|
95
|
$con->send_response(215 => $self->syst); |
|
45
|
3
|
|
|
|
|
15
|
$self->done; |
|
46
|
|
|
|
|
|
|
} |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
1; |
|
49
|
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
__END__ |