1Net::FTPServer::Handle(U3s)er Contributed Perl DocumentatNieotn::FTPServer::Handle(3)
2
3
4

NAME

6       Net::FTPServer::Handle - A generic Net::FTPServer file or directory
7       handle.
8

SYNOPSIS

10         use Net::FTPServer::Handle;
11

DESCRIPTION

METHODS

14           $handle = Net::FTPServer::Handle->new ($ftps);
15
16           Create a new handle. You would normally call this from a derived
17           class.
18
19           $rv = $handle->equals ($other_handle);
20
21           Decide if two handles refer to the same thing (file or directory).
22
23           ($mode, $perms, $nlink, $user, $group, $size, $time) =
24           $handle->status;
25
26           Return the file or directory status. The fields returned are:
27
28             $mode     Mode        'd' = directory,
29                                   'f' = file,
30                                   and others as with
31                                   the find(1) -type option.
32             $perms    Permissions Permissions in normal octal numeric format.
33             $nlink    Link count
34             $user     Username    In printable format.
35             $group    Group name  In printable format.
36             $size     Size        File size in bytes.
37             $time     Time        Time (usually mtime) in Unix time_t format.
38
39           In derived classes, some of this status information may well be
40           synthesized, since virtual filesystems will often not contain
41           information in a Unix-like format.
42
43           $name = $handle->pathname;
44
45           Return the full path of this file or directory. The path consists
46           of all components separated by "/" characters.
47
48           If the object is a directory, then the pathname will have a "/"
49           character at the end.
50
51           $name = $handle->filename;
52
53           Return the filename part of the path. If the file is a directory,
54           then this function returns "".
55
56           $name = $handle->dirname;
57
58           Return the directory name part of the path. The directory name
59           always has a trailing "/" character.
60
61           $rv = $handle->move ($dirh, $filename);
62
63           Move the current file (or directory) into directory $dirh and call
64           it $filename. If the operation is successful, return 0, else return
65           -1.
66
67           Underlying filesystems may impose limitations on moves: for
68           example, it may not be possible to move a directory; it may not be
69           possible to move a file to another directory; it may not be
70           possible to move a file across filesystems.
71
72           $rv = $handle->delete;
73
74           Delete the current file or directory. If the delete command was
75           successful, then return 0, else if there was an error return -1.
76
77           Different underlying file systems may impose restrictions on this
78           command: for example, it may not be possible to delete directories,
79           or only if they are empty.
80
81           This is a virtual function which is actually implemented in one of
82           the subclasses.
83

AUTHORS

85       Richard Jones (rich@annexia.org).
86
88       Copyright (C) 2000 Biblio@Tech Ltd., Unit 2-3, 50 Carnwath Road,
89       London, SW6 3EG, UK
90

SEE ALSO

92       Net::FTPServer(3), perl(1)
93

POD ERRORS

95       Hey! The above document had some coding errors, which are explained
96       below:
97
98       Around line 37:
99           You can't have =items (as at line 50) unless the first thing after
100           the =over is an =item
101
102       Around line 207:
103           =back doesn't take any parameters, but you said =back 4
104
105
106
107perl v5.12.0                      2003-09-28         Net::FTPServer::Handle(3)
Impressum