mirror of
https://github.com/nextcloud/documentation.git
synced 2026-03-27 13:38:39 +07:00
Merge pull request #5257 from payne8/patch-2
Update required info about Hooks
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user