GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  FILESYS::NOTIFY::KQUEUE (3)

.ds Aq ’

NAME

Filesys::Notify::KQueue - Wrap IO::KQueue for watching file system.

CONTENTS

SYNOPSIS



  use Filesys::Notify::KQueue;

  my $notify = Filesys::Notify::KQueue->new(
      path    => [qw(~/Maildir/new)],
      timeout => 1000,
  );
  $notify->wait(sub {
      my @events = @_;

      foreach my $event (@events) {
          ## ....
      }
  });



DESCRIPTION

Filesys::Notify::KQueue is IO::KQueue wrapper for watching file system.

METHODS

    new - Hash or HashRef

This is constructor method.
path - ArrayRef[Str] Watch files or directories.
timeout - Int KQueue’s timeout. (millisecond)

    wait - CodeRef

There is no file name based filter. Do it in your own code. You can get types of events (create, modify, rename, delete).

AUTHOR

Kenta Sato <karupa@cpan.org>

SEE ALSO

IO::KQueue Filesys::Notify::Simple AnyEvent::Filesys::Notify File::ChangeNotify Mac::FSEvents Linux::Inotify2

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 FILESYS::NOTIFY::KQUEUE (3) 2015-06-07

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.