Main > Programming > Libraries >

File::Signature 1.009

File::Signature 1.009

Sponsored Links

File::Signature 1.009 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.008 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 909
Date added: 2007-04-30
Publisher: Jeremy Madea

File::Signature 1.009 description

File::Signature is a Perl module to detect changes to a files content or attributes.

SYNOPSIS

use File::Signature;
my $sig = File::Signature->new(/some/file);

# If you have a stringified signature stored in $string
# you can create a File::Signature object from it.
my $sig = File::Signature->new_from_string($string);

if (my $err = $sig->error) {
warn $err, "n";
}
# You can use a signature object to re-check the same file.
if ( $sig->is_same() ) { print "Ok. The signature is the same.n" }
if ( $sig->changed() ) { print "Uh Oh! The signature has changed.n" }

my @digests = $sig->old_and_new(digest);
my @inodes = $sig->old_and_new(ino);
my @modes = $sig->old_and_new(mode);
my @uid = $sig->old_and_new(uid);
my @gid = $sig->old_and_new(gid);
my @mtime = $sig->old_and_new(mtime);

# A slightly more worthwhile use...
my @fields = $sig->changed();
for my $field (@fields) {
printf "$field was: %s but changed to %s.n",
$sig->old_and_new($field);
}

ABSTRACT

This perl library uses perl5 objects to assist in determining whether a files contents or attributes have changed. It maintains several pieces of information about the file: a digest (currently only MD5 is supported), its inode number, its mode, the uid of its owner, the gid of its group owner, and its last modification time. A File::Signature object is closely associated with a single pathname. It provides a way to compare the state of a file over different points in time; it isnt useful for comparing different files.

This module provides a way to monitor files for changes. It implements an object oriented interface to file "signatures." In the case of this module, a signature includes an MD5 digest (other digests may be added later), the files size, its inode number, its mode, its owners uid, its groups gid, and its mtime. This information is associated with a file by the files "pathname." The pathname is considered to be the files unique identifier. In reality, a file may have more than one pathname, but this module doesnt recognize that.

It will simply treat two differing pathnames as two different files, even if they refer to the same file. As this module checks whether a file changes over time, a minimal use of it would include the time when the signature was created and a different time when the signature is regenerated and compared with the previous one. The amount of time between these checks is arbitrary. This module makes it easy to save a signature object and then load it and check for consistency at a later time, whether seconds or years have passed.

File::Signature 1.009 Screenshot

Advertisements

File::Signature 1.009 Keywords

Bookmark File::Signature 1.009

Hyperlink code:
Link for forum:

File::Signature 1.009 Copyright

WareSeeker periodically updates pricing and software information of File::Signature 1.009 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of File::Signature 1.009 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Test::Signature is a Perl module to automate SIGNATURE testing. Free Download
Module::Signature is a Perl module signature file manipulation. Free Download
Mail::DKIM::Signature module encapsulates a DKIM signature header. Free Download
Test::File::Find::Rule is a Perl module to test files and directories with File::Find::Rule. Free Download
ConfigFile for Haskell is a configuration file parser and writer library for Haskell. Free Download
Apache::Storage is Perl module containing simple functions to store and retrieve information from within the Apache process. Free Download
IO::InSitu is a Perl module to avoid clobbering files opened for both input and output. Free Download
Similars is a Perl module that can locate similar files. Free Download