dav/sync.c

changeset 135
664aeaec8d25
parent 75
56962faf2b42
child 144
c2c02c9b3be4
equal deleted inserted replaced
134:4bccc18820e8 135:664aeaec8d25
180 if (cmd_getoption(a, "verbose")) { 180 if (cmd_getoption(a, "verbose")) {
181 curl_easy_setopt(sn->handle, CURLOPT_VERBOSE, 1L); 181 curl_easy_setopt(sn->handle, CURLOPT_VERBOSE, 1L);
182 curl_easy_setopt(sn->handle, CURLOPT_STDERR, stderr); 182 curl_easy_setopt(sn->handle, CURLOPT_STDERR, stderr);
183 } 183 }
184 184
185 DavResource *ls = dav_query(sn, "get D:getetag from / where lastmodified > 0 with depth -1"); 185 DavResource *ls = dav_query(sn, "select D:getetag from / depth -1 where lastmodified > 0 with");
186 if(!ls) { 186 if(!ls) {
187 fprintf(stderr, "Error\n"); 187 fprintf(stderr, "Error\n");
188 // TODO: free 188 // TODO: free
189 return -1; 189 return -1;
190 } 190 }

mercurial