You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a file "report-favorite.xml" with the following contents
<?xml version="1.0" encoding="utf-8" ?>
<oc:filter-filesxmlns:a="DAV:"xmlns:oc="http://owncloud.org/ns" >
<a:prop>
<!-- add Webdav properties to query here, like for PROPFIND -->
<a:getetag/>
<a:resourcetype/>
<a:getcontentlength/>
</a:prop>
<!-- required filter rules, at least one needs to be specified -->
<oc:filter-rules>
<!-- add filter rules here -->
<oc:favorite>1</oc:favorite>
</oc:filter-rules>
<!-- optional search block for pagination -->
<oc:search>
<!-- offset to retrieve (here 200 would be page 2) -->
<oc:offset>200</oc:offset>
<!-- number of results to retrieve -->
<oc:limit>100</oc:limit>
</oc:search>
</oc:filter-files>
curl -u admin:admin -X REPORT -H "Content-Type: text/xml" --data-binary "@report-favorite.xml" 'http://localhost/owncloud/remote.php/dav/files/admin/'
This will return a multistatus result containing all favorite files from any subdirectory:
It only returns the required properties just like PROPFIND.
The text was updated successfully, but these errors were encountered: