Net::FTPServer::RO::FileHandle - The anonymous, read-only FTP server personality
use Net::FTPServer::RO::FileHandle;
Return the directory which contains this file.
Open a file handle (derived from IO::Handle, see IO::Handle(3)) in either read or write mode.
IO::Handle
IO::Handle(3)
Return the file or directory status. The fields returned are:
$mode Mode 'd' = directory, 'f' = file, and others as with the find(1) -type option. $perms Permissions Permissions in normal octal numeric format. $nlink Link count $user Username In printable format. $group Group name In printable format. $size Size File size in bytes. $time Time Time (usually mtime) in Unix time_t format.
In derived classes, some of this status information may well be synthesized, since virtual filesystems will often not contain information in a Unix-like format.
Move the current file (or directory) into directory $dirh and call it $filename. If the operation is successful, return 0, else return -1.
$dirh
$filename
Underlying filesystems may impose limitations on moves: for example, it may not be possible to move a directory; it may not be possible to move a file to another directory; it may not be possible to move a file across filesystems.
Delete the current file. If the delete command was successful, then return 0, else if there was an error return -1.
If the current file is really a symbolic link, read the contents of the link and return it.
Richard Jones (rich@annexia.org).
Copyright (C) 2000 Biblio@Tech Ltd., Unit 2-3, 50 Carnwath Road, London, SW6 3EG, UK
Net::FTPServer(3), perl(1)
Net::FTPServer(3)
perl(1)
To install Net::FTPServer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::FTPServer
CPAN shell
perl -MCPAN -e shell install Net::FTPServer
For more information on module installation, please visit the detailed CPAN module installation guide.