GX::File::Watcher - Filesystem watcher
None.
This module provides the GX::File::Watcher class which extends the GX::Class::Object class.
new
Returns a new GX::File::Watcher object.
$watcher = GX::File::Watcher->new;
$watcher ( GX::File::Watcher object )
$watcher
GX::Exception
directories
Returns the monitored directory paths.
@directories = $watcher->directories;
@directories ( strings )
@directories
files
Returns the monitored file paths.
@files = $watcher->files;
@files ( strings )
@files
find_changes
Checks the monitored files and directories for changes. When called in list context, find_changes() returns a list with the paths to the modified (or deleted) files and directories.
find_changes()
@paths = $watcher->find_changes;
@paths ( strings )
@paths
In scalar context, find_changes() returns true if at least one of the monitored files and directories has been modified (or deleted), otherwise false.
$result = $watcher->find_changes;
$result ( bool )
$result
watch
Adds the given file / directory paths to the watchlist.
$watcher->watch( @paths );
Jörg A. Uzarek <uzarek@runlevelnull.de>
Copyright (c) 2009-2011 Jörg A. Uzarek.
This module is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License Version 3 as published by the Free Software Foundation.
To install GX, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GX
CPAN shell
perl -MCPAN -e shell install GX
For more information on module installation, please visit the detailed CPAN module installation guide.