Name : perl-File-DirList
| |
Version : 0.05
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 6.1
| Date : 2015-04-19 17:02:42
|
Group : Development/Libraries/Perl
| Source RPM : perl-File-DirList-0.05-6.1.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : provide a sorted list of directory content
|
Description :
This module is used to get a list of directory content. It is a simple wrapper around the DirHandle manpage and the sort() manpage
The module has two methods:
* \'list($dirName, $sortMode, $noLinks, $hideDotFiles, $showSelf)\'
Produces a list, accepting 5 parameters:
* \'$dirName\'
Name of the directory to list
* \'$sortMode\'
Describes how list should be sorted.
This is a string containing the following symbols, with uppercase representing the reverse sort:
* \'d\' or \'D\'
\"Directory\" sort. \'\'d\'\' means all the directories will precede files, \'\'D\'\' means reverse.
* \'n\' or \'N\'
Sort by file (or subdirectory) name.
* \'i\' or \'I\'
Same as \'\'n\'\' but case insensitive.
* \'m\' or \'M\'
Sort by modification time.
* \'c\' or \'C\'
Sort by creation time.
* \'a\' or \'A\'
Sort by access time.
* \'s\' or \'S\'
Sort by size.
the $sortMode manpage is interpreted from left to right. If the first comparison produces an equal result next one is used. For example, string \'_\'din\'_\' produces a list with all the directories preceding files, directories and files are sorted by name case insensitively, with lowercase letters preceding upper case.
* \'$noLinks\'
If \'true\' symbolic links will not be examined. Set it on platforms without symlink support.
* \'$hideDotFiles\'
If \'true\' _\'dot\'_ files will not be reported.
* \'$showSelf\'
If \'true\' _\'.\'_ directory entry will be reported.
Returned value is an array reference, sorted as described by the $sortMode manpage.
Array elements are array references representing an item.
The individual item\'s array contains 17 elements:
* \'[0..12]\'
Result of the stat() manpage for this item. For valid symbolic links, the the stat manpage of the target item is returned.
* \'[13]\'
Name of the item.
* \'[14]\'
Is item a directory? Contains 0 for non-directory items, 1 for directories, 2 for \'\'..\'\', 3 for \'\'.\'\'. Used by the d or D manpage sorting.
* \'[15]\'
Is item a link? \'0\' for non-links, \'1\' for valid links, \'-1\' for invalid links.
* \'[16]\'
Link target. \'_undef_\' for non-links, target path for links.
the [15] manpage and the [16] manpage are set to non-link if the $examineLinks manpage is \'false\'.
* \'sortList($list, $sortMode)\'
Used to re-sort a list produced by \'list()\'
Parameters are
* \'$lis\'
Reference to a list produced by \'list()\'
* \'$sortMode\'
Sorting rules.
Return value is similar to \'list()\'
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-F/openSUSE_Tumbleweed/noarch |