FreeBSD Manual Pages
AnyEvent::Filesys::NotUser:Contributed PerlAnyEvent::Filesys::Notify::Event(3) NAME AnyEvent::Filesys::Notify::Event - Object to report changes in the monitored filesystem VERSION version 1.21 SYNOPSIS use AnyEvent::Filesys::Notify; my $notifier = AnyEvent::Filesys::Notify->new( dir => [ qw( this_dir that_dir ) ], interval => 2.0, # Optional depending on underlying watcher cb => sub { my (@events) = @_; for my $event (@events){ process_created_file($event->path) if $event->is_created; process_modified_file($event->path) if $event->is_modified; process_deleted_file($event->path) if $event->is_deleted; } }, ); DESCRIPTION Simple object to encapsulate information about the filesystem modifications. METHODS path() my $modified_file = $event->path(); Returns the path to the modified file. This is the path as given by the user, ie not modified by abs_path. type() my $modificaiton_type = $event->type(); Returns the type of change made to the file or directory. Will be one of "created", "modified", or "deleted". is_dir() my $is_dir = $event->is_dir(); Returns a true value if the path is a directory. is_created() do_something($event) if $event->is_created; True if "$event->type eq 'created'". is_modified() do_something($event) if $event->is_modified; True if "$event->type eq 'modified'". is_deleted() do_something($event) if $event->is_deleted; True if "$event->type eq 'deleted'". SEE ALSO AnyEvent::Filesys::Notify CONTRIBUTOR Gasol Wu <gasol.wu@gmail.com> who contributed the BSD support for IO::KQueue o Gasol Wu <gasol.wu@gmail.com> who contributed the BSD support for IO::KQueue o Dave Hayes <dave@jetcafe.orgE<dt> o Gasol Wu <gasol.wu@gmail.com> who contributed the BSD support for IO::KQueue o Dave Hayes <dave@jetcafe.orgE<dt> o Gasol Wu <gasol.wu@gmail.com> who contributed the BSD support for IO::KQueue o Dave Hayes <dave@jetcafe.org> o Carsten Wolff <carsten@wolffcarsten.de> o Gasol Wu <gasol.wu@gmail.com> who contributed the BSD support for IO::KQueue o Dave Hayes <dave@jetcafe.org> o Carsten Wolff <carsten@wolffcarsten.de> CONTRIBUTORS o Gasol Wu <gasol.wu@gmail.com> who contributed the BSD support for IO::KQueue o Dave Hayes <dave@jetcafe.org> o Carsten Wolff <carsten@wolffcarsten.de> AUTHOR Mark Grimes, <mgrimes@cpan.org> SOURCE Source repository is at <https://github.com/mvgrimes/AnyEvent-Filesys-Notify>. BUGS Please report any bugs or feature requests on the bugtracker website <http://github.com/mvgrimes/AnyEvent-Filesys-Notify/issues> When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. COPYRIGHT AND LICENSE This software is copyright (c) 2016 by Mark Grimes, <mgrimes@cpan.org>. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. POD ERRORS Hey! The above document had some coding errors, which are explained below: Around line 117: Unknown E content in E<dt> Around line 131: Unknown E content in E<dt> perl v5.32.0 2020-08-2AnyEvent::Filesys::Notify::Event(3)
NAME | VERSION | SYNOPSIS | DESCRIPTION | METHODS | SEE ALSO | CONTRIBUTOR | CONTRIBUTORS | AUTHOR | SOURCE | BUGS | COPYRIGHT AND LICENSE | POD ERRORS
Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=AnyEvent::Filesys::Notify::Event&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>