Net::FSP::File - An FSP file


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

Index


NAME

Top

Net::FSP::File - An FSP file

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.

download($sink = $self->name)

This method downloads the file to $sink. $sink must either be an untainted filename, a filehandle or a callback function.

grab($sink = $self->name)

This method downloads the file and deletes it at when this is done. These actions are considered atomic by the server. Its argument works as in download.

cat()

This method downloads the file and returns it as a string. Using this on large files is not recommended.

upload($source)

This method overwrites a file on the server. $source must either be a filename, a filehandle or a callback function.

open($mode)

Open a file and return a filehandle. $mode must be either < or > for reading or writing respectively. Only one writing filehandle at a time may be opened, this is a protocol restriction.

AUTHOR

Top

Leon Timmermans, fawaka@gmail.com

LICENSE AND COPYRIGHT

Top


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