Net::FSP::Dir - An FSP directory
This documentation refers to Net::FSP version 0.13
This class represents a file on the server.
This class inherits methods name, short_name, type, move, remove, size, time, link and accept from Net::FSP::Entry.
This method returns a list of files and directories in this directory. The entries in the lists are either Net::FSP::File or a Net::FSP::Dir objects for files and directories respectively.
Download this whole directory to $target.
Change the current directory to this directory.
Get the readme of this directory.
This method returns the directory's protection. It returns a hash reference with the elements owner, delete, create, mkdir, private, readme, list and rename.
owner
delete
create
mkdir
private
readme
list
rename
This method changes the permission of directory $directory_name for public users. It's mode argument is consists of two characters. The first byte is + or -, to indicate whether the permission is granted or revoked. The second byte contains a c, d, g, m, l or r for the permission to create files, delete files, get files, create directories, list the directory or rename files. Its return value is the same as get_protection.
$directory_name
Upload a local directory to the server.
Leon Timmermans, fawaka@gmail.com
Copyright (c) 2005, 2008 Leon Timmermans. All rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Net::FSP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::FSP
CPAN shell
perl -MCPAN -e shell install Net::FSP
For more information on module installation, please visit the detailed CPAN module installation guide.