From dc634430cb3c11c8d8d1b6df076c8a71f0a94e4e Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Fri, 18 Mar 2022 14:50:38 +0100 Subject: [PATCH] add contained-folder-count and contained-file-count optional webdav properties Signed-off-by: Julien Veyssier --- developer_manual/client_apis/WebDAV/basic.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/developer_manual/client_apis/WebDAV/basic.rst b/developer_manual/client_apis/WebDAV/basic.rst index e0d45c11b..26a668d4a 100644 --- a/developer_manual/client_apis/WebDAV/basic.rst +++ b/developer_manual/client_apis/WebDAV/basic.rst @@ -12,7 +12,7 @@ WebDAV basics The base url for all WebDAV operations for a Nextcloud instance is :code:`/remote.php/dav`. -All requests need to provide authentication information, either as a Basic Auth header or by passing a set of valid session cookies. +All requests need to provide authentication information, either as a Basic Auth header or by passing a set of valid session cookies. If your Nextcloud installation uses an external auth provider (such as an OIDC server) you may have to create an app password. To do that browse to your user Settings > Security and create one. It will provide a username and password which you can use within the Basic Auth header. @@ -73,6 +73,8 @@ You can request additional properties by sending a request body with the :code:` + + @@ -96,6 +98,8 @@ The following properties are supported: - :code:`{http://nextcloud.org/ns}has-preview` - :code:`{http://owncloud.org/ns}size` Unlike :code:`getcontentlength`, this property also works for folders reporting the size of everything in the folder. - :code:`{http://nextcloud.org/ns}rich-workspace` this property is provided by the text app +- :code:`{http://nextcloud.org/ns}contained-folder-count` The number of folders directly contained in the folder (not recursively) +- :code:`{http://nextcloud.org/ns}contained-file-count` The number of files directly contained in the folder (not recursively) Getting properties for just the folder ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^