mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Update required info about Hooks
Spent too much time looking for something to give me the right direction. Found this forum post from 2017. https://help.nextcloud.com/t/filehook-not-working/14591/14 Signed-off-by: Mason Payne <gomas.bmw@gmail.com>
This commit is contained in:
parent
a5148a0fb4
commit
21ac1abb37
@ -591,6 +591,14 @@ Filesystem root
|
||||
|
||||
Injectable from the ServerContainer by calling the method **getRootFolder()**, **getUserFolder()** or **getAppFolder()**.
|
||||
|
||||
To enable these events for your app you should add the following to your `info.xml` file:
|
||||
|
||||
.. code-block:: xml
|
||||
|
||||
<types>
|
||||
<filesystem/>
|
||||
</types>
|
||||
|
||||
Filesystem hooks available in scope **\\OC\\Files**:
|
||||
|
||||
* **preWrite** (\\OCP\\Files\\Node $node)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user