update metadata on copy/move

Sun, 07 Apr 2019 14:18:13 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 07 Apr 2019 14:18:13 +0200
changeset 554
ebac6e1ac190
parent 553
891823d8dd7b
child 555
c9ada14ee90e

update metadata on copy/move

dav/sync.c file | annotate | diff | comparison | revisions
--- a/dav/sync.c	Sun Apr 07 14:08:45 2019 +0200
+++ b/dav/sync.c	Sun Apr 07 14:18:13 2019 +0200
@@ -3443,6 +3443,13 @@
     if(up_res) {
         (*counter)++;
         
+        // set metadata
+        MetadataHashes hashes;
+        hashes = sync_set_metadata_properties(dir, up_res->session, up_res, local);
+        if(dav_store(up_res)) {
+            fprintf(stderr, "Error: cannot store resource metadata\n");
+        }
+        
         // everything seems fine, we can update the local resource
         char *etag = dav_get_string_property(up_res, "D:getetag");
         if(etag) {

mercurial