lib/Net/FTPServer/PWP/Handle.pm untested

filter: Statementstmt 0.0% 0 / 18 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 5 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 26 CC 2 SCAR 12.0
CC
2
Cov
0%
pathname
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 3.3
1 package Net::FTPServer::PWP::Handle;
2  
3 # $Id: Handle.pm,v 1.1 2002/11/15 23:55:43 lem Exp $
4  
5  
6 use 5.00500;
7 use strict;
8  
9 use vars qw($VERSION @ISA);
10  
11 use Net::FTPServer::Handle;
12  
13 #@ISA = qw(Net::FTPServer::Handle);
14  
15 $VERSION = '1.00';
16  
17 =pod
18  
19 =head1 NAME
20  
21 Net::FTPServer::PWP::Handle - Base class for Net::FTPServer::PWP file or dir handles
22  
23 =head1 SYNOPSIS
24  
25 use Net::FTPServer::PWP::Handle;
26  
27 =head1 DESCRIPTION
28  
29 This is the base class for C<Net::FTPServer::PWP::FileHandle> and
30 C<Net::FTPServer::PWP::DirHandle>.
31  
32 =over
33  
34 =back
35  
36 =head2 EXPORT
37  
38 None by default.
39  
40 =head1 METHODS
41  
42 The following methods are defined. Note that these override the
43 methods found in L<Net::FTPServer::Full>.
44  
45 =over 4
46  
47 =item C<-E<gt>pathname()>
48  
49 Returns the pathname of the handle. If the mount point must be hidden
50 from the user, it is automatically removed.
51  
52 =cut
53  
54 sub pathname {
55 my $self = shift;
56  
57 # warn "pathname = $self->{_pathname}\n";
58  
59 if ($self->{ftps}->config('hide mount point')) {
60 return substr($self->{_pathname},
61 length($self->{ftps}->{pwp_root_dir}) - 1);
62 }
63  
64 return $self->{_pathname};
65 }
66  
67 1;
68 __END__