Roxen.git / server / etc / modules / PropertySet.pike

version» Context lines:

Roxen.git/server/etc/modules/PropertySet.pike:219:   string|array(Parser.XML.Tree.Node)|mapping(string:mixed)    query_property(string prop_name)   {    switch(prop_name) {    case "DAV:creationdate": // RFC2518 13.1    int t = st->ctime;    if (t > st->atime) t = st->atime;    if (t > st->mtime) t = st->mtime;    return Roxen.iso8601_date_time(t); // MS kludge.    case "DAV:displayname": // RFC2518 13.2 +  if ((path == "") || (path == "/")) return "/"; +  if (path[-1] == '/') return basename(path[..sizeof(path)-2]);    return basename(path);    case "DAV:getcontentlanguage":// RFC2518 13.3    return "en"; // MS kludge.    case "DAV:getcontentlength": // RFC2518 13.4    if (st->isreg) {    return (string)st->size;    }    return "0";    case "DAV:getcontenttype": // RFC2518 13.5    if (st->isreg) {