Win32::FileFind::FileData - A info about file
This module is internal and contains all data returned by Win32 function FindFirstFile
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; # or $file->mtime next if $file->ftLastAccessTime > time -10; # or $file->atime my $mtime = $file->mtime->as_double + 1; next if $file->FileSize == 0; # print $file, "\n"; # $file->cFileName print $file->dosName, "\n"; my $s = $file->dwFileAttributes; # Get all attribytes }
This is a convinience function what test what dwFileAttributes has FILE_FILE_ATTRIBUTE_TEMPORARY bit set.
boolean function that is false for filename equal '.' and '..', otherwise return true.
boolean value that file has readonly or hidden attribute
file has archive bit set
All these properties name by its corresponding attribute
return all FileAttributes in one unsinged integer
return utf8 name of file ( not set utf8 flag MAY CHANGE)
return old 8.3 name if file name is long
File size
File's timestamps
File Raw data
To install Win32::FindFile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Win32::FindFile
CPAN shell
perl -MCPAN -e shell install Win32::FindFile
For more information on module installation, please visit the detailed CPAN module installation guide.