dev-master
9999999-devUtility to monitor file system changes
MIT
The Requires
by Michael Calcinai
v0.1.1
0.1.1.0Utility to monitor file system changes
MIT
The Requires
by Michael Calcinai
Utility to monitor file system changes
A simple binding for ReactPHP event loops to watch files., (*1)
Currently only file poling and inotifywait in implemented, but is designed with stubs for other methods., (*2)
If possible, install inotifywait
on your system, in Debian it's in the inotify-tools
package. It is much more efficient than the file
poll method., (*3)
$loop = \React\EventLoop\Factory::create(); $observer = new \Calcinai\Rubberneck\Observer($loop); $observer->onModify(function($file_name){ echo "Modified: $file_name\n"; }); $observer->onCreate(function($file_name){ echo "Created: $file_name\n"; }); $observer->onDelete(function($file_name){ echo "Deleted: $file_name\n"; }); $observer->watch('~/Desktop/*.txt'); $loop->run();
Utility to monitor file system changes
MIT
Utility to monitor file system changes
MIT