The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

POE::Component::DirWatch::Role::Signatures

DESCRIPTION

POE::Component::DirWatch::Role::Signatures is a role which provides File::Signature functionality to DirWatch-based classes. It will keep a hashref of signatures of the files processing to allow you to determine if a file has changed.

ATTRIBUTES

signatures

Read-write. Will return a hashref in which keys will be the full path of the files seen and the value will be a stringified File::Signature object.

METHODS

file_callback

after '_file_callback' Add the file's signature to signatures if it doesnt yet exist.

_poll

before '_poll' the list of known files is checked and if any of the files no longer exist they are removed from the list of known files.

SEE ALSO

File::Signature, POE::Component::DirWatch, Moose

COPYRIGHT

Copyright 2006-2008 Guillermo Roditi. This is free software; you may redistribute it and/or modify it under the same terms as Perl itself.