change dav-sync push output for link resources

Sun, 21 Apr 2019 10:53:21 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 21 Apr 2019 10:53:21 +0200
changeset 583
ec0ec7908b7d
parent 582
7aec3e6cab1f
child 584
7fb81fd429b2

change dav-sync push output for link resources

dav/sync.c file | annotate | diff | comparison | revisions
--- a/dav/sync.c	Sun Apr 21 10:47:33 2019 +0200
+++ b/dav/sync.c	Sun Apr 21 10:53:21 2019 +0200
@@ -2005,7 +2005,14 @@
                 local_res->skipped = TRUE;
                 sync_conflict++;
             } else {
-                printf("put: %s\n", local_res->path);
+                if(local_res->link_target) {
+                    printf(
+                            "link: %s -> %s\n",
+                            local_res->path,
+                            local_res->link_target);
+                } else {
+                    printf("put: %s\n", local_res->path);
+                }
                 if(sync_put_resource(dir, res, local_res, &sync_success)) {
                     sync_error++;
                     print_resource_error(sn, res->path);

mercurial