1 package File::ChangeNotify::Event;
9 use Moose::Util::TypeConstraints;
19 isa => enum( [qw( create modify delete unknown )] ),
24 no Moose::Util::TypeConstraints;
26 __PACKAGE__->meta()->make_immutable();
34 File::ChangeNotify::Event - Class for file change events
38 for my $event ( $watcher->new_events() )
40 print $event->path(), ' - ', $event->type(), "\n";
45 This class provides information about a change to a specific file or
50 =head2 File::ChangeNotify::Event->new(...)
52 This method creates a new event. It accepts the following arguments:
58 The full path to the file or directory that changed.
62 The type of event. This must be one of "create", "modify", "delete", or
69 Returns the path of the changed file or directory.
73 Returns the type of event.
77 Dave Rolsky, E<lt>autarch@urth.orgE<gt>
79 =head1 COPYRIGHT & LICENSE
81 Copyright 2009 Dave Rolsky, All Rights Reserved.
83 This program is free software; you can redistribute it and/or modify
84 it under the same terms as Perl itself.