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
13 $dirh = $fileh->dir;
14 Return the directory which contains this file.
15
16 $fh = $fileh->open (["r"|"w"|"a"]);
17 Open a file handle (derived from "IO::Handle", see IO::Handle(3))
18 in either read or write mode.
19
20 ($mode, $perms, $nlink, $user, $group, $size, $time) = $handle->status;
21 Return the file or directory status. The fields returned are:
22
23 $mode Mode 'd' = directory,
24 'f' = file,
25 and others as with
26 the find(1) -type option.
27 $perms Permissions Permissions in normal octal numeric format.
28 $nlink Link count
29 $user Username In printable format.
30 $group Group name In printable format.
31 $size Size File size in bytes.
32 $time Time Time (usually mtime) in Unix time_t format.
33
34 In derived classes, some of this status information may well be
35 synthesized, since virtual filesystems will often not contain
36 information in a Unix-like format.
37
38 $rv = $handle->move ($dirh, $filename);
39 Move the current file (or directory) into directory $dirh and call
40 it $filename. If the operation is successful, return 0, else return
41 -1.
42
43 Underlying filesystems may impose limitations on moves: for
44 example, it may not be possible to move a directory; it may not be
45 possible to move a file to another directory; it may not be
46 possible to move a file across filesystems.
47
48 $rv = $fileh->delete;
49 Delete the current file. If the delete command was successful, then
50 return 0, else if there was an error return -1.
51
52 $link = $fileh->readlink;
53 If the current file is really a symbolic link, read the contents of
54 the link and return it.
55
57 Richard Jones (rich@annexia.org).
58
60 Copyright (C) 2000 Biblio@Tech Ltd., Unit 2-3, 50 Carnwath Road,
61 London, SW6 3EG, UK
62
64 Net::FTPServer(3), perl(1)
65
66
67
68perl v5.36.0 2023-01-20 Net::FTPServer::RO::FileHandle(3)