table of contents
File::ChangeNotify::Event(3pm) | User Contributed Perl Documentation | File::ChangeNotify::Event(3pm) |
NAME¶
File::ChangeNotify::Event - Class for file change eventsVERSION¶
version 0.26SYNOPSIS¶
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"; }
DESCRIPTION¶
This class provides information about a change to a specific file or directory.METHODS¶
File::ChangeNotify::Event->new(...)¶
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".
$event->path()¶
Returns the path of the changed file or directory.$event->type()¶
Returns the type of event.SUPPORT¶
Bugs may be submitted through the RT bug tracker <http://rt.cpan.org/Public/Dist/Display.html?Name=File-ChangeNotify> (or bug-file-changenotify@rt.cpan.org <mailto:bug-file-changenotify@rt.cpan.org>).I am also usually active on IRC as 'drolsky' on "irc://irc.perl.org".
AUTHOR¶
Dave Rolsky <autarch@urth.org>COPYRIGHT AND LICENCE¶
This software is Copyright (c) 2016 by Dave Rolsky.This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
2016-05-30 | perl v5.22.2 |