File::Info

File::Info can store file information persistently for fast lookup.
Download

File::Info Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Martyn J. Pearce
  • Publisher web site:
  • http://search.cpan.org/~fluffy/

File::Info Tags


File::Info Description

File::Info can store file information persistently for fast lookup. File::Info can store file information persistently for fast lookup.SYNOPSIS use File::Info qw( $PACKAGE $VERSION ); my $info = File::Info->new($dir); # $fn is "basename"; contains no directory portion my $hex = $info->md5hex($fn); # Reads cached data if possibleThis package stores per-file information for speedy lookup later. It is intended to store file info that takes a significant time to determine --- e.g., the MD5 sum of a large file, to avoid uneccessarily recalculation. This may be particularly helpful for searching across many files for some specific property.File statistics are recalculated on demand. If the file size or modification time have changed since the calculations were last made, then they will be purged and recalculated.File information is stored on a per-directory basis. Each file info file is stored in a directory; the files to which it refers are in the same directory, and are referred as names without paths.CLASS CONSTANTSTYPE_CONSTANTSAs returned by the type method. These constants are exported by request, either individually, or together with the ':types' tag.TYPE_UNKNOWNFile type not identifiedTYPE_JPEGA 'JPEG' image file.TYPE_PARA 'par' (parity archive) file. Requirements: · Perl


File::Info Related Software