POE::Component::DirWatch::Object::NewUnmodifiedFile
use POE::Component::DirWatch::Object::NewUnmodifiedFile; #$watcher is a PoCo::DW:Object::NewUnmodifiedFile my $watcher = POE::Component::DirWatch::Object::NewUnmodifiedFile->new ( alias => 'dirwatch', directory => '/some_dir', filter => sub { $_[0] =~ /\.gz$/ && -f $_[1] }, callback => \&some_sub, interval => 1, ); $poe_kernel->run;
POE::Component::DirWatch::Object::NewUnmodifiedFile extends DirWatch::Object in order to exclude files that have already been processed
Read-write. Will return a hash ref in with keys will be the full path of all previously processed documents.
override 'dispatch' Don't dispatch if file has been seen.
override 'dispatch'
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 to avoid the list growing out of control.
before 'poll'
Dominic Humphries <perl@oneandoneis2.com> Based on POE::Component::DirWatch::Object::NewFile by Guillermo Roditi, <groditi@cpan.org>
Copyright 2018- Dominic Humphries
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install POE::Component::DirWatch::Object::NewUnmodifiedFile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::Component::DirWatch::Object::NewUnmodifiedFile
CPAN shell
perl -MCPAN -e shell install POE::Component::DirWatch::Object::NewUnmodifiedFile
For more information on module installation, please visit the detailed CPAN module installation guide.