man Net::FTPServer::RO::DirHandle () - The anonymous, read-only FTP server personality

NAME

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

SYNOPSIS

  use Net::FTPServer::RO::DirHandle;

DESCRIPTION

METHODS

Return the file or directory CW$handle corresponding to the file CW$filename in directory CW$dirh. If there is no file or subdirectory of that name, then this returns undef. Return the parent directory of the directory CW$dirh. If the directory is already /, this returns the same directory handle. Return a list of the contents of directory CW$dirh. The list returned is a reference to an array of pairs:

  [ $filename, $handle ]
The list returned does not include . or ... The list is sorted into alphabetical order automatically. Return a list of the contents of directory CW$dirh and status information. The list returned is a reference to an array of triplets:
  [ $filename, $handle, $statusref ]
where CW$statusref is the tuple returned from the CWstatus method (see Net::FTPServer::Handle). The list returned does not include . or ... The list is sorted into alphabetical order automatically. 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 CW$dirh and call it CW$filename. If the operation is successful, return 0, else return -1. 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 directory. If the delete command was successful, then return 0, else if there was an error return -1. It is normally only possible to delete a directory if it is empty. Create a subdirectory called CW$name within the current directory CW$dirh. Open or create a file called CW$filename in the current directory, opening it for either read, write or append. This function returns a CWIO::File handle object.

AUTHORS

Richard Jones (rich@annexia.org).

COPYRIGHT

Copyright (C) 2000 Biblio@Tech Ltd., Unit 2-3, 50 Carnwath Road, London, SW6 3EG, UK

SEE ALSO