1Net::FTPServer::RO::FilUesHearndCloen(t3r)ibuted Perl DoNceutm:e:nFtTaPtSieornver::RO::FileHandle(3)
2
3
4
6 Net::FTPServer::RO::FileHandle - The anonymous, read-only FTP server
7 personality
8
10 use Net::FTPServer::RO::FileHandle;
11
14 $dirh = $fileh->dir;
15
16 Return the directory which contains this file.
17
18 $fh = $fileh->open (["r"|"w"|"a"]);
19
20 Open a file handle (derived from "IO::Handle", see IO::Handle(3))
21 in either read or write mode.
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 $rv = $handle->move ($dirh, $filename);
44
45 Move the current file (or directory) into directory $dirh and call
46 it $filename. If the operation is successful, return 0, else return
47 -1.
48
49 Underlying filesystems may impose limitations on moves: for
50 example, it may not be possible to move a directory; it may not be
51 possible to move a file to another directory; it may not be
52 possible to move a file across filesystems.
53
54 $rv = $fileh->delete;
55
56 Delete the current file. If the delete command was successful, then
57 return 0, else if there was an error return -1.
58
59 $link = $fileh->readlink;
60
61 If the current file is really a symbolic link, read the contents of
62 the link and return it.
63
65 Richard Jones (rich@annexia.org).
66
68 Copyright (C) 2000 Biblio@Tech Ltd., Unit 2-3, 50 Carnwath Road,
69 London, SW6 3EG, UK
70
72 Net::FTPServer(3), perl(1)
73
75 Hey! The above document had some coding errors, which are explained
76 below:
77
78 Around line 37:
79 You can't have =items (as at line 56) unless the first thing after
80 the =over is an =item
81
82 Around line 200:
83 =back doesn't take any parameters, but you said =back 4
84
85
86
87perl v5.12.0 2004-11-10 Net::FTPServer::RO::FileHandle(3)