Skip to content

Commit e2088ac

Browse files
authored
Merge pull request #11947 from nextcloud/StCyr-patch-1
In Files client's API, mention the use of a davClient to retrieve a Node from a file's name
2 parents 257f458 + 6e53199 commit e2088ac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

developer_manual/client_apis/files.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ the ``event-bus`` and use the following events:
3030
* ``files:node:moved``: the node has been moved (and its data is already updated)
3131
* ``files:node:updated``: the node data has been updated
3232

33-
Example
34-
-------
33+
All these events use a Node as argument. You can use a webdav client (for example, by using the davGetClient function from `@nextcloud/files <https://nextcloud-libraries.github.io/nextcloud-files/>`__) to retrieve a node from a file's name.
34+
35+
Examples
36+
--------
3537

3638
.. code-block:: ts
3739
@@ -42,7 +44,6 @@ Example
4244
console.log('Node created', node)
4345
})
4446
45-
4647
Router
4748
^^^^^^
4849

0 commit comments

Comments
 (0)