Ryo Okamoto > Net-FTPServer-1.124 > Net::FTPServer::RO::FileHandle



Annotate this POD


New  1
Open  0
Stalled  2
View/Report Bugs
Module Version: 1.2   Source   Latest Release: Net-FTPServer-1.125


Net::FTPServer::RO::FileHandle - The anonymous, read-only FTP server personality


  use Net::FTPServer::RO::FileHandle;


$dirh = $fileh->dir;

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.


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.





$rv = $fileh->delete;


$link = $fileh->readlink;

If the current file is really a symbolic link, read the contents of the link and return it.


Richard Jones (rich@annexia.org).




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

syntax highlighting: