This script is for Slackware 14.0 only and may be outdated.

SlackBuilds Repository

14.0 > Perl > perl-file-listing (6.04)

This module exports a single function called parse_dir(), which can
be used to parse directory listings.
The first parameter to parse_dir() is the directory listing to parse.
It can be a scalar, a reference to an array of directory lines or a
glob representing a filehandle to read the directory listing from.
The second parameter is the time zone to use when parsing time stamps
in the listing. If this value is undefined, then the local time zone
is assumed.
The third parameter is the type of listing to assume. Currently
supported formats are 'unix', 'apache' and 'dosftp'. The default value
'unix'. Ideally, the listing type should be determined automatically.
The fourth parameter specifies how unparseable lines should be treated.
Values can be 'ignore', 'warn' or a code reference. Warn means that the
perl warn() function will be called. If a code reference is passed, then
this routine will be called and the return value from it will be incorporated
in the listing. The default is 'ignore'.
Only the first parameter is mandatory.
The return value from parse_dir() is a list of directory entries. In a scalar
context the return value is a reference to the list. The directory entries
are represented by an array consisting of [ $filename, $filetype, $filesize,
$filetime, $filemode ]. The $filetype value is one of the letters 'f', 'd',
'l' or '?'. The $filetime value is the seconds since Jan 1, 1970. The
$filemode is a bitmask like the mode returned by stat().

This requires: perl-http-date

Maintained by: LukenShiro
Keywords:
ChangeLog: perl-file-listing

Homepage:
http://search.cpan.org/dist/File-Listing/

Source Downloads:
File-Listing-6.04.tar.gz (83f636b477741f3a014585bb9cc079a6)

Download SlackBuild:
perl-file-listing.tar.gz
perl-file-listing.tar.gz.asc (FAQ)

(the SlackBuild does not include the source)

Validated for Slackware 14.0

See our HOWTO for instructions on how to use the contents of this repository.

Access to the repository is available via:
ftp git cgit http rsync

© 2006-2024 SlackBuilds.org Project. All rights reserved.
Slackware® is a registered trademark of Patrick Volkerding
Linux® is a registered trademark of Linus Torvalds