Tue, 15 Mar 2016 11:21:30 +0100
dav list indicates locks
dav/main.c | file | annotate | diff | comparison | revisions | |
dav/version.h | file | annotate | diff | comparison | revisions |
--- a/dav/main.c Tue Mar 15 11:07:31 2016 +0100 +++ b/dav/main.c Tue Mar 15 11:21:30 2016 +0100 @@ -359,7 +359,7 @@ while(ret != 0) { ls = dav_query( sn, - "select `idav:crypto-name`,`idav:crypto-key` from %s with depth = %d where lastmodified > %t order by iscollection desc, name", + "select `idav:crypto-name`,`idav:crypto-key`,D:lockdiscovery from %s with depth = %d where lastmodified > %t order by iscollection desc, name", path, depth, t); @@ -497,7 +497,7 @@ char flags[16]; memset(flags, '-', 15); - flags[2] = '\0'; + flags[3] = '\0'; int type_width = 0; char *type = res->contenttype; @@ -513,6 +513,9 @@ if(keyprop) { flags[1] = 'c'; } + if(dav_get_property(res, "D:lockdiscovery")) { + flags[2] = 'l'; + } if(cmd_getoption(a, "type")) { type_width = 20;