Skip to content

Commit b0a69d1

Browse files
author
Julien Veyssier
authored
Merge pull request #8140 from nextcloud/add-webdav-properties
Add contained-folder-count and contained-file-count webdav props
2 parents a0560d5 + dc63443 commit b0a69d1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

developer_manual/client_apis/WebDAV/basic.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ WebDAV basics
1212

1313
The base url for all WebDAV operations for a Nextcloud instance is :code:`/remote.php/dav`.
1414

15-
All requests need to provide authentication information, either as a Basic Auth header or by passing a set of valid session cookies.
15+
All requests need to provide authentication information, either as a Basic Auth header or by passing a set of valid session cookies.
1616

1717
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.
1818

@@ -73,6 +73,8 @@ You can request additional properties by sending a request body with the :code:`
7373
<oc:comments-unread />
7474
<oc:owner-display-name />
7575
<oc:share-types />
76+
<nc:contained-folder-count />
77+
<nc:contained-file-count />
7678
</d:prop>
7779
</d:propfind>
7880
@@ -96,6 +98,8 @@ The following properties are supported:
9698
- :code:`{http://nextcloud.org/ns}has-preview`
9799
- :code:`{http://owncloud.org/ns}size` Unlike :code:`getcontentlength`, this property also works for folders reporting the size of everything in the folder.
98100
- :code:`{http://nextcloud.org/ns}rich-workspace` this property is provided by the text app
101+
- :code:`{http://nextcloud.org/ns}contained-folder-count` The number of folders directly contained in the folder (not recursively)
102+
- :code:`{http://nextcloud.org/ns}contained-file-count` The number of files directly contained in the folder (not recursively)
99103

100104
Getting properties for just the folder
101105
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

0 commit comments

Comments
 (0)