So I’m in the middle of web-based filesystem abstraction layer development. Just like file browser, except it has some extra features like freaky permissions etc.
I would like users to be notified somehow about directory changes. So, i.e. when someone uploads a new file via FTP, certain users should get a proper message. It is not required for the message to be extra detailed, I don’t really need to show the exact resource changed. The parent directory name should be enough.
What approach would you recommend?
If your server is Linux you can do this with something like inotify
If the only updates are coming from FTP, then another solution I’ve used in the past is to write an add-on module to ProFTPD that performs the ‘notification’ once upload is complete.