Fri, 12 Apr 2019 15:09:19 +0200
fix deletion of splitted files
dav/sync.c | file | annotate | diff | comparison | revisions |
--- a/dav/sync.c Fri Apr 12 15:00:50 2019 +0200 +++ b/dav/sync.c Fri Apr 12 15:09:19 2019 +0200 @@ -3680,7 +3680,7 @@ int *counter, UcxList **cols) { - DavResource *res = dav_get(sn, local_res->path, "D:getetag"); + DavResource *res = dav_get(sn, local_res->path, "D:getetag,idav:split"); if(!res) { return sn->error == DAV_NOT_FOUND ? 0 : 1; } @@ -3688,9 +3688,10 @@ int ret = 0; sn->error = DAV_OK; if(res->iscollection) { + DavXmlNode *split = dav_get_property_ns(res, DAV_NS, "split"); if(cols) { *cols = ucx_list_append(*cols, local_res); - } else if(!res->children) { + } else if(split || !res->children) { printf("delete: %s\n", res->path); if(dav_delete(res)) { ret = 1;