how to start? Wiki is empty and example program incomplete
In the README for this project, I see this: New to FireFS ? From console to web apps, you can read the wiki to know how to use this library into your project... but that "wiki" is empty.
Searching the web, I found this example program https://dev.to/na2axl/how-to-create-a-file-watcher-with-php-and-the-elementary-framework-1po, for which the "onAny" function seems to work. But the onCreated, onDeleted, onModified functions are not called at all in my environment (MacOS 14.2, PHP 8.1).
Hey @j-j-banks
Sorry I know this project (and some others for this framework) lacks a good documentation. It will be difficult for me to add them due to my other occupations/projects. But I am still available to answer through GitHub issues.
For the issue with the onAny callback, please have in mind that the onCreated, onDeleted, and onModified callbacks will only be triggered if onAny returns true.
The purpose of onAny is to have a kind of catch-all behavior, that you can forward only for specific cases by returning true. If onAny always returns true, it's guaranteed to always run before the other callbacks according to the triggered event.