1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

All: Optimised Nextcloud sync delta functionality

This commit is contained in:
Laurent Cozic
2018-01-29 20:51:14 +00:00
parent 0dba2821b6
commit 5cb5ccc781
8 changed files with 209 additions and 44 deletions

View File

@ -109,7 +109,7 @@ class WebDavApi {
return this.valueFromJson(json, keys, 'array');
}
async execPropFind(path, depth, fields = null) {
async execPropFind(path, depth, fields = null, options = null) {
if (fields === null) fields = ['d:getlastmodified'];
let fieldsXml = '';
@ -131,7 +131,7 @@ class WebDavApi {
</d:prop>
</d:propfind>`;
return this.exec('PROPFIND', path, body, { 'Depth': depth });
return this.exec('PROPFIND', path, body, { 'Depth': depth }, options);
}
// curl -u admin:123456 'http://nextcloud.local/remote.php/dav/files/admin/' -X PROPFIND --data '<?xml version="1.0" encoding="UTF-8"?>