![]() |
![]()
| ![]() |
![]()
NAMEFilesys::Notify::KQueue - Wrap IO::KQueue for watching file system. SYNOPSISuse Filesys::Notify::KQueue; my $notify = Filesys::Notify::KQueue->new( path => [qw(~/Maildir/new)], timeout => 1000, ); $notify->wait(sub { my @events = @_; foreach my $event (@events) { ## .... } }); DESCRIPTIONFilesys::Notify::KQueue is IO::KQueue wrapper for watching file system. METHODSnew - Hash or HashRefThis is constructor method.
wait - CodeRefThere is no file name based filter. Do it in your own code. You can get types of events (create, modify, rename, delete). AUTHORKenta Sato <karupa@cpan.org> SEE ALSOIO::KQueue Filesys::Notify::Simple AnyEvent::Filesys::Notify File::ChangeNotify Mac::FSEvents Linux::Inotify2 LICENSEThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|