NAME
Net::FSP::Entry - An FSP directory entry
VERSION
This documentation refers to Net::FSP version 0.13
DESCRIPTION
In FSP there are two kinds of entries, files and directories. This is the base class of the corresponding types: Net::FSP::File and Net::FSP::Dir.
METHODS
- name()
-
Returns the full name of the entry.
- short_name
-
Returns the basename of the entry.
- type()
-
Returns file or dir, depending on the type of entry.
- move($new_location)
-
Move this entry to a new location.
- remove()
-
Remove this entry.
- download($sink = $self->name)
-
Download this entry.
- size()
-
Returns the size (in bytes) of the entry.
- time()
-
Returns the modification time of the entry (in seconds since UNIX epoch).
- link()
-
Returns the location the symlink is pointing to, or undef if the entry is not a symlink.
- accept($visitor)
-
Accept a visitor. This visitor must be a subref.
AUTHOR
Leon Timmermans, fawaka@gmail.com
LICENSE AND COPYRIGHT
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.