NAME

Net::FTP::Path::Iter::Entry - Class representing a Filesystem Entry

VERSION

version 0.04

DESCRIPTION

A Net::FTP::Path::Iter::Entry object represents an entry in the remote FTP filesystem. It is rarely seen in the wild. Rather, Net::FTP::Path::Iter uses the subclasses Net::FTP::Path::Iter::Entry::File and Net::FTP::Path::Iter::Entry::Dir when passing paths to callbacks or returning paths to iterators. These subclasses have no unique methods or attributes of their own; they only have those of this, their parent class.

ATTRIBUTES

mode

The entry mode as returned by stat.

mtime

The entry modification time.

name

The entry name.

path

The complete path to the entry

parent

The parent directory of the entry

server

The Net::FTP server object

size

The size of the entry

type

The type of the entry, one of

f

file

d

directory

l

symbolic link. See however "Symbolic Links" in Net::FTP::Path::Iter

?

unknown

METHODS

is_dir

  $bool = $entry->is_dir;

returns true if the entry is a directory.

is_file

  $bool = $entry->is_file;

returns true if the entry is a file.

BUGS AND LIMITATIONS

You can make new bug reports, and view existing ones, through the web interface at https://rt.cpan.org/Public/Dist/Display.html?Name=Net-FTP-Path-Iter.

SEE ALSO

Please see those modules/websites for more information related to this module.

AUTHOR

Diab Jerius <djerius@cpan.org>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2017 by Smithsonian Astrophysical Observatory.

This is free software, licensed under:

  The GNU General Public License, Version 3, June 2007