I'm trying to develop an app who can check the number of files inside directories of the user.
I'm using Hooks for checking the number of files before the write action, but now when the number of files is too high, I need to cancel the write action.
How can I do that ? I was looking at the documentation, but I didn't find any relative information.
It seems that the write action after my hooks can be cancelled by generating an error but I really don't think this is a good way.
I'm actually working on Owncloud 9.2.