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, |