dav/main.c

changeset 143
d8b01bed3d83
parent 142
0c0ccb7f71ba
child 144
c2c02c9b3be4
equal deleted inserted replaced
142:0c0ccb7f71ba 143:d8b01bed3d83
417 } 417 }
418 418
419 free(path); 419 free(path);
420 //free(base); 420 //free(base);
421 421
422 dav_session_destroy(sn); 422 //dav_session_destroy(sn);
423 423
424 return ret; 424 return ret;
425 } 425 }
426 426
427 static char* ls_date_str(time_t tm) { 427 static char* ls_date_str(time_t tm) {
614 DavResource *res; 614 DavResource *res;
615 615
616 int depth = recursive ? -1 : 1; 616 int depth = recursive ? -1 : 1;
617 res = dav_query( 617 res = dav_query(
618 sn, 618 sn,
619 "select - from %s with = depth %d where lastmodified > %t", 619 "select - from %s with depth = %d where lastmodified > %t",
620 path, 620 path,
621 t, 621 depth,
622 depth); 622 t);
623 623
624 if(!res) { 624 if(!res) {
625 print_resource_error(sn, path); 625 print_resource_error(sn, path);
626 return -1; 626 return -1;
627 } 627 }

mercurial