AnyEvent-Inotify-Simple

 view release on metacpan or  search on metacpan

lib/AnyEvent/Inotify/EventReceiver.pm  view on Meta::CPAN

L<Path::Class|Path::Class> objects.  The paths provided are always
relative to the directory that was given to the constructor of the
C<AnyEvent::Inotify::Simple> object.

Note: "file" below means "file or directory" where that makes sense.

=head2 handle_create

Called when a new file, C<$file>, appears in the watched directory.
If it's a directory, we automatically start watching it and calling
callbacks for files in that directory, still relative to the original
directory. C<IN_CREATE>.

=head2 handle_access($file)

Called when C<$file> is accessed. C<IN_ACCESS>.

=head2 handle_modify($file)

Called when C<$file> is modified. C<IN_MODIFY>.



( run in 0.260 second using v1.01-cache-2.11-cpan-d6f9594c0a5 )