Name : perl-IO-Dirent
| |
Version : 0.05
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp154.7.1
| Date : 2023-01-27 16:54:24
|
Group : Development/Libraries/Perl
| Source RPM : perl-IO-Dirent-0.05-lp154.7.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Access to dirent structs returned by readdir
|
Description :
*readdirent* returns a list of hashrefs. Each hashref contains the name of the directory entry, its inode for the filesystem it resides on and its type (if available). If the file type or inode are not available, it won\'t be there!
*nextdirent* returns the next dirent as a hashref, allowing you to iterate over directory entries one by one. This may be helpful in low-memory situations or where you have enormous directories.
*IO::Dirent* exports the following symbols by default:
readdirent
nextdirent
The following tags may be exported to your namespace:
ALL
which includes *readdirent*, *nextdirent* and the following symbols:
DT_UNKNOWN DT_FIFO DT_CHR DT_DIR DT_BLK DT_REG DT_LNK DT_SOCK DT_WHT
These symbols can be used to test the file type returned by *readdirent* in the following manner:
for my $entry ( readdirent(DIR) ) { next unless $entry->{\'type\'} == DT_LNK;
print $entry->{\'name\'} . \" is a symbolic link.\ \"; }
For platforms that do not implement file type in its dirent struct, *readdirent* will return a hashref with a single key/value of \'name\' and the filename (effectively the same as readdir). This is subject to change, if I can implement some of the to do items below.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-I/15.4/x86_64 |