1Filesys::Notify::SimpleU(s3e)r Contributed Perl DocumentaFtiiloensys::Notify::Simple(3)
2
3
4

NAME

6       Filesys::Notify::Simple - Simple and dumb file system watcher
7

SYNOPSIS

9         use Filesys::Notify::Simple;
10
11         my $watcher = Filesys::Notify::Simple->new([ "." ]);
12         $watcher->wait(sub {
13             for my $event (@_) {
14                 $event->{path} # full path of the file updated
15             }
16         });
17

DESCRIPTION

19       Filesys::Notify::Simple is a simple but unified interface to get
20       notifications of changes to a given filesystem path. It utilizes
21       inotify2 on Linux and fsevents on OS X if they're installed, with a
22       fallback to the full directory scan if they're not available.
23
24       There are some limitations in this module. If you don't like it, use
25       File::ChangeNotify.
26
27       ·   There is no file name based filter. Do it in your own code.
28
29       ·   You can not get types of events (created, updated, deleted).
30
31       ·   Currently "wait" method blocks.
32
33       In return, this module doesn't depend on any non-core modules. Platform
34       specific optimizations with Linux::Inotify2 and Mac::FSEvents are
35       truely optional.
36

AUTHOR

38       Tatsuhiko Miyagawa <miyagawa@bulknews.net>
39

LICENSE

41       This library is free software; you can redistribute it and/or modify it
42       under the same terms as Perl itself.
43

SEE ALSO

45       File::ChangeNotify Mac::FSEvents Linux::Inotify2
46
47
48
49perl v5.12.0                      2009-11-29        Filesys::Notify::Simple(3)
Impressum