Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    Net::FTPServer::RO::DirHandle 1.122

    Download button

    No screenshots available
    Downloads: 252  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Richard Jones | More programs
    Perl Artistic License / FREE
    November 13th, 2008, 12:46 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Net::FTPServer::RO::DirHandle description

    The anonymous, read-only FTP server personality

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

    SYNOPSIS

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

    METHODS

     $handle = $dirh->get ($filename);

     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.

     $dirh = $dirh->parent;

     Return the parent directory of the directory $dirh. If the directory is already "/", this returns the same directory handle.

     $ref = $dirh->list ([$wildcard]);

     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.

     $ref = $dirh->list_status ([$wildcard]);

     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).

     The list returned does not include "." or "..".

     The list is sorted into alphabetical order automatically.

     ($mode, $perms, $nlink, $user, $group, $size, $time) = $handle->status;

     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.

     $rv = $handle->move ($dirh, $filename);

     Move the current file (or directory) into directory $dirh and call it $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.

     $rv = $dirh->delete;

     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.

     $rv = $dirh->mkdir ($name);

     Create a subdirectory called $name within the current directory $dirh.

     $file = $dirh->open ($filename, "r"|"w"|"a");

     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.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    FTP server | Perl module | Perl | FTP | server



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM