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

version» Context lines:

Roxen.git/server/etc/modules/PropertySet.pike:57:   // Simulate an import of useful stuff from Parser.XML.Tree.   static constant SimpleNode = Parser.XML.Tree.SimpleNode;   static constant SimpleElementNode = Parser.XML.Tree.SimpleElementNode;      private constant all_properties_common = (<    "DAV:getcontentlength",    "DAV:getcontenttype",    "DAV:displayname",    "DAV:resourcetype",    "DAV:supportedlock", -  "DAV:iscollection", -  "DAV:isfolder", +     "DAV:lockdiscovery",    "DAV:supportedlock", -  +  // Microsoft extensions from draft-ietf-dasl-protocol-00.txt +  // Note that these hijack some of the DAV: namespace. +  // See also https://greenbytes.de/tech/webdav/webdavfaq.html +  "DAV:iscollection", +  // Microsoft extensions from draft-hoppmann-collection-props-00.txt +  // Note that these hijack some of the DAV: namespace. +  // See also https://greenbytes.de/tech/webdav/webdavfaq.html +  "DAV:isfolder", +  "DAV:ishidden",   >);      private constant all_properties_file = all_properties_common + (<    "http://apache.org/dav/props/executable",   >);      private constant all_properties_dir = all_properties_common;      //! Returns a multiset with the names of all supported properties.   //!
Roxen.git/server/etc/modules/PropertySet.pike:356:    return "F";    }    break;      #if 0    // Need more interaction with directory listing modules to handle    // this.    case "DAV:defaultdocument": // draft-hopmann-collection-props-00 1.3    return "";    -  // Absence means not hidden. -  case "DAV:ishidden": // draft-hopmann-collection-props-00 1.6 -  return "0"; -  +     // Absence means not a structured document.    case "DAV:isstructureddocument": // draft-hopmann-collection-props-00 1.7    return "0";   #endif    -  +  case "DAV:ishidden": // draft-hopmann-collection-props-00 1.6 +  if ((has_suffix(path, "/") && has_prefix(basename(dirname(path)), ".")) || +  has_prefix(basename(path), ".")) { +  return "1"; +  } +  return "0"; +     case "DAV:iscollection": // draft-ietf-dasl-protocol-00 5.18    case "DAV:isfolder": // draft-hopmann-collection-props-00 1.5    if ((get_stat()||([]))->isdir) {    return "1";    }    return "0";      #if 0    // The following are properties in the DAV namespace    // that Microsoft has stolen.