Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Wrap IO::KQueue for watching file system.
Perl
branch: master

Checking in changes prior to tagging of version 0.09.

Changelog diff is:

diff --git a/Changes b/Changes
index ff9a1f6..953ae5a 100644
--- a/Changes
+++ b/Changes
@@ -2,18 +2,17 @@ Revision history for Perl extension Filesys::Notify::KQueue

 {{$NEXT}}

-0.01    Sun Sep 11 2011
-        - original version
-0.02    Sun Sep 18 2011
-        - wait method is compatible with the interface of Filesys::Notify::Simple now.
-0.03    Sat Sep 24 2011
-        - fixed default timeout.
-        - write pod.
-0.04    Thu Oct 20 2011
-        - fixed test dependency. (thanks ANDK)
-0.05    Thu Oct 20 2011
-        - build_require to test_require.
-        - fixed a day of the week in Changes.
+0.09 2013-10-12T02:43:02Z
+        - minil migrate
+        - fixed pod spelling.
+        - fixed dependency.
+
+0.08    Wed Dec 14 2011
+        - File::Path after version 2.06_05 required at test.(oops)
+
+0.07    Sun Dec 11 2011
+        - add t::Util to MANIFEST.(oops)
+
 0.06    Sun Dec 11 2011
         [bugfix]
           - cannot set timeout.
@@ -22,7 +21,20 @@ Revision history for Perl extension Filesys::Notify::KQueue
         - fixed spell miss.
         - coding style is changed a little.
         - not import File::Find's export functions.
-0.07    Sun Dec 11 2011
-        - add t::Util to MANIFEST.(oops)
-0.08    Wed Dec 14 2011
-        - File::Path after version 2.06_05 required at test.(oops)
+
+0.05    Thu Oct 20 2011
+        - build_require to test_require.
+        - fixed a day of the week in Changes.
+
+0.04    Thu Oct 20 2011
+        - fixed test dependency. (thanks ANDK)
+
+0.03    Sat Sep 24 2011
+        - fixed default timeout.
+        - write pod.
+
+0.02    Sun Sep 18 2011
+        - wait method is compatible with the interface of Filesys::Notify::Simple now.
+
+0.01    Sun Sep 11 2011
+        - original version
latest commit 69dd21d3ac
@karupanerura authored
Failed to load latest commit information.
lib/Filesys/Notify
t
xt
.gitignore
Build.PL
Changes Checking in changes prior to tagging of version 0.09.
LICENSE
META.json Checking in changes prior to tagging of version 0.09.
README.md
cpanfile

README.md

NAME

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

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.

Something went wrong with that request. Please try again.