File::ChangeNotify::Event - Class for file change events
version 0.28
my $watcher = File::ChangeNotify->instantiate_watcher( directories => [ '/my/path', '/my/other' ], filter => qr/\.(?:pm|conf|yml)$/, exclude => [ 't', 'root', qr(/(?!\.)[^/]+$) ], ); for my $event ( $watcher->new_events() ) { print $event->path(), ' - ', $event->type(), "\n"; }
This class provides information about a change to a specific file or directory.
This method creates a new event. It accepts the following arguments:
path => $path
The full path to the file or directory that changed.
type => $type
The type of event. This must be one of "create", "modify", "delete", or "unknown".
Returns the path of the changed file or directory.
Returns the type of event.
Bugs may be submitted at http://rt.cpan.org/Public/Dist/Display.html?Name=File-ChangeNotify or via email to bug-file-changenotify@rt.cpan.org.
I am also usually active on IRC as 'autarch' on irc://irc.perl.org.
irc://irc.perl.org
The source code repository for File-ChangeNotify can be found at https://github.com/houseabsolute/File-ChangeNotify.
Dave Rolsky <autarch@urth.org>
This software is Copyright (c) 2009 - 2018 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
The full text of the license can be found in the LICENSE file included with this distribution.
To install File::ChangeNotify, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::ChangeNotify
CPAN shell
perl -MCPAN -e shell install File::ChangeNotify
For more information on module installation, please visit the detailed CPAN module installation guide.