Merge pull request #5259 from nextcloud/backport/5257/stable20

[stable20] Update required info about Hooks
This commit is contained in:
Morris Jobke 2020-10-16 13:35:26 +02:00 committed by GitHub
commit ae7329e7ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -790,6 +790,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)