Win32::FileFind::FileData - DataRecord returned by FindFile
DESCRIPTION
This module is internal and contains all data returned by Win32 function FindFirstFile
SYNOPSYS
for my $file ( FindFile( './*' )){
next unless $file->is_entry # skip over '.', '..'
next if $file->is_hidden; # skip over hidden files
next if $file->is_system; # etc
next if $file->is_directory;
next if $file->ftCreationTime > time -10; # skip over files created recently
next if $file->ftLastWriteTime > time -10;
next if $file->ftLastAccessTime > time -10;
next if $file->FileSize == 0; #
print $file, "\n"; # $file->cFileName
print $file->dosName, "\n";
my $s = $file->dwFileAttributes; # Get all attribytes
}
Attributes
- $bool = $fd->is_temporary
-
This is a convinience function what test what dwFileAttributes has FILE_FILE_ATTRIBUTE_TEMPORARY bit set. =item $bool = $fd->is_entry boolean function that is false for filename equal '.' and '..', otherwise return true.
- $bool = $fd->is_ro
-
boolean value that file has readonly or hidden attribute
- $bool = $fd->is_archive
-
file has archive bit set
-
All these properties name by its corresponding attribute
PROPERTIES
return all FileAttributes in one unsinged integer
$name = $fd->cFileName or FileName or name
return utf8 name of file ( not set utf8 flag MAY CHANGE)
$dosName = $fd->dosName
return old 8.3 name if file name is long
$filesize = FileSize
File size
$time = $fd->ftCreationTime, ftLastWriteTime, ftLastAccessTime
File's timestamps
nFileSizeHigh, nFileSizeLow, dwReserved0, dwReserved1
File Raw data
3 POD Errors
The following errors were encountered while parsing the POD:
- Around line 4:
=pod directives shouldn't be over one line long! Ignoring all 2 lines of content
- Around line 77:
You can't have =items (as at line 83) unless the first thing after the =over is an =item
- Around line 79:
Unknown directive: =item1