Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to start? Wiki is empty and example program incomplete #9

Open
j-j-banks opened this issue Feb 7, 2024 · 1 comment
Open

how to start? Wiki is empty and example program incomplete #9

j-j-banks opened this issue Feb 7, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@j-j-banks
Copy link

j-j-banks commented Feb 7, 2024

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).

@na2axl na2axl self-assigned this Feb 7, 2024
@na2axl na2axl added the question Further information is requested label Feb 7, 2024
@na2axl
Copy link
Member

na2axl commented Feb 7, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants