Net::FSP::Dir - An FSP directory


Net-FSP documentation  | view source Contained in the Net-FSP distribution.

Index


NAME

Top

Net::FSP::Dir - An FSP directory

VERSION

Top

This documentation refers to Net::FSP version 0.13

DESCRIPTION

Top

This class represents a file on the server.

METHODS

Top

This class inherits methods name, short_name, type, move, remove, size, time, link and accept from Net::FSP::Entry.

list()

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($target)

Download this whole directory to $target.

change_current()

Change the current directory to this directory.

readme()

Get the readme of this directory.

get_protection()

This method returns the directory's protection. It returns a hash reference with the elements owner, delete, create, mkdir, private, readme, list and rename.

set_protection($mode)

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.

TODO

Top

upload($source)

Upload a local directory to the server.

AUTHOR

Top

Leon Timmermans, fawaka@gmail.com

LICENSE AND COPYRIGHT

Top


Net-FSP documentation  | view source Contained in the Net-FSP distribution.