File::Set

Mange/build a set of files from a list of file/directories
Download

File::Set Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Rob Mueller
  • Publisher web site:
  • http://search.cpan.org/~robm/Mail-IMAPTalk-1.03/IMAPTalk.pm

File::Set Tags


File::Set Description

Mange/build a set of files from a list of file/directories File::Set is a Perl module to mange/build a set of files from a list of file/directories.SYNOPSIS use File::Set; $FS = File::Set->new(); # Add directories (and implicitly all files and sub-dirs) to file set $FS->add('/etc'); $FS->add('/usr/lib', '/usr/include'); # Add files in directory (not recursive); $FS->add({ recurse => 0 }, '/usr/local/bin'); # Exclude particular files/directories $FS->exclude('/usr/include/linux', '/etc/shadow'); # Add/exclude from file (see below for file format) $FS->add_from_file('/tmp/config'); # List files, calling callback for each dir/file $FS->list($self, &list_callback, 0); # Save a list of checksums for all files/directories $FS->save_checksum_db('/tmp/checksumdb'); # Compare a list against a previously saved checksum db # and call callback for added/deleted/changed files $FS->compare_checksum_db('/tmp/checksumdb', &callback) sub list_callback { my ($self, $prefix, $path, $type, $stat) = @_; ... called back for each file/dir/etc found ... }This module is designed to build and manipulate a set of files from a list of input directories and files. You can specify whether directories should be recursed or not, or specific sub-directories ignored. Requirements: · Perl


File::Set Related Software