Skip to content

Conversation

@julien-nc
Copy link
Member

@julien-nc julien-nc commented Feb 15, 2022

This allows requesting {http://owncloud.org/ns}contained-folder-count and {http://owncloud.org/ns}contained-files-count PROPFIND properties which results in getting the number of files and directories contained by the element:

<nc:contained-folder-count>10</nc:contained-folder-count>
<nc:contained-file-count>58</nc:contained-file-count>

This can be useful in a folder tree view of a WebDav client to know in advance if a directory can be expanded without having to use depth=2 and make the Dav response potentially a lot bigger.

@julien-nc julien-nc added this to the Nextcloud 24 milestone Feb 15, 2022
@julien-nc julien-nc requested review from a team, CarlSchwan, PVince81 and juliusknorr and removed request for a team February 15, 2022 15:52
@julien-nc julien-nc force-pushed the enh/webdav-propfind-count-sub-elements branch from 9322917 to 38fa7fa Compare February 15, 2022 16:10
@PVince81 PVince81 added the pending documentation This pull request needs an associated documentation update label Feb 16, 2022
@PVince81
Copy link
Member

@eneiluj once the spec is clear, please also add those to the documentation

@julien-nc julien-nc force-pushed the enh/webdav-propfind-count-sub-elements branch from 38fa7fa to fa709a0 Compare February 16, 2022 09:31
@julien-nc
Copy link
Member Author

@PVince81 Sure.
And if you have a better idea for the prop names, fine by me.

@juliusknorr
Copy link
Member

How about contained-file-count and contained-folder-count for the naming?

@julien-nc
Copy link
Member Author

@juliushaertl Yes, much better, thanks.

@PVince81 Documentation PR: nextcloud/documentation#8140

@julien-nc julien-nc force-pushed the enh/webdav-propfind-count-sub-elements branch from bfc8ede to 71a9ebc Compare March 19, 2022 20:23
@julien-nc julien-nc requested a review from tcitworld March 21, 2022 09:00
@julien-nc julien-nc merged commit b85bdf4 into master Mar 21, 2022
@julien-nc julien-nc deleted the enh/webdav-propfind-count-sub-elements branch March 21, 2022 10:33
@julien-nc
Copy link
Member Author

/backport to stable23

@julien-nc
Copy link
Member Author

/backport to stable22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement feature: dav pending documentation This pull request needs an associated documentation update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants