dav/main.c

changeset 425
ae4d89c3477c
parent 421
178dc32c8c9a
child 431
1e8592657a01
child 481
ff477f1f7765
equal deleted inserted replaced
424:f851ba530957 425:ae4d89c3477c
451 if(update) { 451 if(update) {
452 t = util_parse_lastmodified(update); 452 t = util_parse_lastmodified(update);
453 } 453 }
454 454
455 int depth = cmd_getoption(a, "recursive") ? -1 : 1; 455 int depth = cmd_getoption(a, "recursive") ? -1 : 1;
456 int ret = -1; 456 int ret = 0;
457 DavResource *ls = dav_query( 457 DavResource *ls = dav_query(
458 sn, 458 sn,
459 date ? LIST_QUERY_ORDER_BY_DATE : LIST_QUERY_ORDER_BY_NAME, 459 date ? LIST_QUERY_ORDER_BY_DATE : LIST_QUERY_ORDER_BY_NAME,
460 path, 460 path,
461 depth, 461 depth,
474 print_func(child, path, a); 474 print_func(child, path, a);
475 child = child->next; 475 child = child->next;
476 } 476 }
477 } else { 477 } else {
478 print_resource_error(sn, path); 478 print_resource_error(sn, path);
479 ret = -1;
479 } 480 }
480 481
481 free(path); 482 free(path);
482 //free(base); 483 //free(base);
483 484

mercurial