Sun, 07 Apr 2019 14:18:13 +0200
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) {