FileHash::Name - A Hash of file data keyed by the file's name.


FileHash documentation  | view source Contained in the FileHash distribution.

Index


NAME

Top

 FileHash::Name - A Hash of file data keyed by the file's name.

SYNOPSIS

Top

 use FileHash::Name;
 $obj = FileHash::Name->alloc;

Inheritance

Top

 FileHash::Base

Description

Top

This is a container for lists of file name entries. It modifies the definition of hash to to be the file name portion of the absolute path. For instance:

	/my/directory/foo.jpg

would be hashed as foo.jpg so that all instances of that name will be added to the same bucket.

Other than the hash key definition, it inherits its behavior from FileHash::Base.

Examples

Top

 use FileHash::Content;
 my $a = FileHash::Name->alloc;
 $a->initFromTree ("/root");

Class Variables

Top

 None.

Instance Variables

Top

 None.

Class Methods

Top

$obj = FileHash::Name->alloc

Allocate an empty instance of FileHash::Name.

Instance Methods

Top

 See FileHash::Base.

Private Class Method

Top

 None.

Private Instance Methods

Top

$key = $obj->_genKey($entry)

Create an appropriate hash key. If needed values are undef, it will generate a name of "" for the key.

Errors and Warnings

Top

 Lots.

KNOWN BUGS

Top

 See TODO.

SEE ALSO

Top

 FileHash::Base, FileHash::Entry.

AUTHOR

Top

Dale Amon <amon@vnl.com>


FileHash documentation  | view source Contained in the FileHash distribution.