Net::FTPServer::DirHandle - A Net::FTPServer directory handle.
use Net::FTPServer::DirHandle;
Create a new directory handle. The directory handle corresponds to "/".
Return the parent directory of the directory $dirh. If the directory is already "/", this returns the same directory handle.
$dirh
Return true if the current directory is the root directory.
Return the file or directory $handle corresponding to the file $filename in directory $dirh. If there is no file or subdirectory of that name, then this returns undef.
$handle
$filename
Return a list of the contents of directory $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.
Just a dumb wrapper function. Returns the same thing as list_status(), but also includes the special directories "." and ".." if no wildcard is specified.
Return a list of the contents of directory $dirh and status information. The list returned is a reference to an array of triplets:
[ $filename, $handle, $statusref ]
where $statusref is the tuple returned from the status method (see Net::FTPServer::Handle).
status
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 $name within the current directory $dirh.
$name
Open or create a file called $filename in the current directory, opening it for either read, write or append. This function returns a IO::File handle object.
IO::File
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.