-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
34 lines (24 loc) · 838 Bytes
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
NAME
AnyEvent::FSNotify - AnyEvent compatible module to monitor filesystem
for changes
SYNOPSIS
use AnyEvent::FSNotify;
my $watcher = AnyEvent::FSNotify->new(dirs => [$dir1, $dir2, ...], cb => sub {
my @events = @_;
for my $event (@events) {
print "$event->{type} : $event->{path}\n";
});
$cv->recv;
DESCRIPTION
This module is yet another AnyEvent::Filesys::Notify, without Moose.
METHODS
new($dir1, $dir2, .., sub { ... })
Initializes monitor.
AUTHOR
Rintaro Ishizaki <[email protected]>
SEE ALSO
Depends Linux::INotify2, Mac::FSEvents and AnyEvent.
Alternatives AnyEvent::Filesys::Notify, Filesys::Notify::Simple.
LICENSE
This library is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.