add missing isdirectory tag in db on push

Sat, 10 Aug 2019 19:18:29 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 10 Aug 2019 19:18:29 +0200
changeset 615
ab669d21f82a
parent 614
e72d2b99b0f6
child 616
0b61755f2852

add missing isdirectory tag in db on push

dav/sync.c file | annotate | diff | comparison | revisions
--- a/dav/sync.c	Sat Aug 10 14:25:03 2019 +0200
+++ b/dav/sync.c	Sat Aug 10 19:18:29 2019 +0200
@@ -2739,9 +2739,13 @@
         
         if(nullstrcmp(db_res->link_target, res->link_target)) {
             res->link_updated = 1;
-        } else if(db_res->last_modified == res->last_modified && db_res->size == res->size) {
+        } else if(
+                db_res->last_modified == res->last_modified &&
+                db_res->size == res->size &&
+                db_res->isdirectory == res->isdirectory)
+        {
             return 0;
-        }     
+        }
         
         if(db_res->parts) {
             // if the resource is splitted, move the part infos to the new

mercurial