mirror of
https://github.com/nextcloud/documentation.git
synced 2025-10-26 11:18:02 +00:00
Merge pull request #5261 from nextcloud/backport/5257/stable18
[stable18] Update required info about Hooks
This commit is contained in:
commit
7763064f53
@ -562,6 +562,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