Added example for WebDAV search by last updated time

Signed-off-by: Corentin Flr <10946971+cogk@users.noreply.github.com>
This commit is contained in:
Corentin Flr
2021-11-06 21:46:32 +01:00
parent 24a73997c6
commit c4a6c2ad38

View File

@@ -212,4 +212,35 @@ Get all png and jpg files over 10MB.
</d:basicsearch>
</d:searchrequest>
Get all files last modified after a given date.
.. code-block:: xml
<?xml version="1.0" encoding="UTF-8"?>
<d:searchrequest xmlns:d="DAV:" xmlns:oc="http://owncloud.org/ns">
<d:basicsearch>
<d:select>
<d:prop>
<d:displayname/>
<d:getlastmodified />
</d:prop>
</d:select>
<d:from>
<d:scope>
<d:href>/files/test</d:href>
<d:depth>infinity</d:depth>
</d:scope>
</d:from>
<d:where>
<d:gt>
<d:prop>
<d:getlastmodified/>
</d:prop>
<d:literal>2021-01-01T17:00:00Z</d:literal>
</d:gt>
</d:where>
<d:orderby/>
</d:basicsearch>
</d:searchrequest>
.. _rfc5323: https://tools.ietf.org/html/rfc5323