| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  | package AnyEvent::FTP::Server::Context::FSRO; | 
| 2 |  |  |  |  |  |  |  | 
| 3 | 2 |  |  | 2 |  | 1217 | use strict; | 
|  | 2 |  |  |  |  | 5 |  | 
|  | 2 |  |  |  |  | 78 |  | 
| 4 | 2 |  |  | 2 |  | 12 | use warnings; | 
|  | 2 |  |  |  |  | 6 |  | 
|  | 2 |  |  |  |  | 64 |  | 
| 5 | 2 |  |  | 2 |  | 55 | use 5.010; | 
|  | 2 |  |  |  |  | 7 |  | 
| 6 | 2 |  |  | 2 |  | 11 | use Moo; | 
|  | 2 |  |  |  |  | 6 |  | 
|  | 2 |  |  |  |  | 16 |  | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | extends 'AnyEvent::FTP::Server::Context::FSRW'; | 
| 9 |  |  |  |  |  |  |  | 
| 10 |  |  |  |  |  |  | # ABSTRACT: FTP Server client context class with read-only access | 
| 11 |  |  |  |  |  |  | our $VERSION = '0.18'; # VERSION | 
| 12 |  |  |  |  |  |  |  | 
| 13 |  |  |  |  |  |  |  | 
| 14 |  |  |  |  |  |  | sub cmd_stor | 
| 15 |  |  |  |  |  |  | { | 
| 16 | 0 |  |  | 0 | 0 |  | my($self, $con, $req) = @_; | 
| 17 | 0 | 0 |  |  |  |  | unless(defined $self->data) | 
| 18 | 0 |  |  |  |  |  | { $con->send_response(425 => 'Unable to build data connection') } | 
| 19 |  |  |  |  |  |  | else | 
| 20 | 0 |  |  |  |  |  | { $con->send_response(553 => "Permission denied") } | 
| 21 | 0 |  |  |  |  |  | $self->done; | 
| 22 |  |  |  |  |  |  | } | 
| 23 |  |  |  |  |  |  |  | 
| 24 |  |  |  |  |  |  |  | 
| 25 |  |  |  |  |  |  | *cmd_appe = \&cmd_stor; | 
| 26 |  |  |  |  |  |  |  | 
| 27 |  |  |  |  |  |  |  | 
| 28 |  |  |  |  |  |  | *cmd_stou = \&cmd_stor; | 
| 29 |  |  |  |  |  |  | 1; | 
| 30 |  |  |  |  |  |  |  | 
| 31 |  |  |  |  |  |  | __END__ |