|
@@ -107,19 +107,19 @@ var liveProps = map[xml.Name]struct {
|
|
|
// dir is true if the property applies to directories.
|
|
// dir is true if the property applies to directories.
|
|
|
dir bool
|
|
dir bool
|
|
|
}{
|
|
}{
|
|
|
- xml.Name{Space: "DAV:", Local: "resourcetype"}: {
|
|
|
|
|
|
|
+ {Space: "DAV:", Local: "resourcetype"}: {
|
|
|
findFn: findResourceType,
|
|
findFn: findResourceType,
|
|
|
dir: true,
|
|
dir: true,
|
|
|
},
|
|
},
|
|
|
- xml.Name{Space: "DAV:", Local: "displayname"}: {
|
|
|
|
|
|
|
+ {Space: "DAV:", Local: "displayname"}: {
|
|
|
findFn: findDisplayName,
|
|
findFn: findDisplayName,
|
|
|
dir: true,
|
|
dir: true,
|
|
|
},
|
|
},
|
|
|
- xml.Name{Space: "DAV:", Local: "getcontentlength"}: {
|
|
|
|
|
|
|
+ {Space: "DAV:", Local: "getcontentlength"}: {
|
|
|
findFn: findContentLength,
|
|
findFn: findContentLength,
|
|
|
dir: false,
|
|
dir: false,
|
|
|
},
|
|
},
|
|
|
- xml.Name{Space: "DAV:", Local: "getlastmodified"}: {
|
|
|
|
|
|
|
+ {Space: "DAV:", Local: "getlastmodified"}: {
|
|
|
findFn: findLastModified,
|
|
findFn: findLastModified,
|
|
|
// http://webdav.org/specs/rfc4918.html#PROPERTY_getlastmodified
|
|
// http://webdav.org/specs/rfc4918.html#PROPERTY_getlastmodified
|
|
|
// suggests that getlastmodified should only apply to GETable
|
|
// suggests that getlastmodified should only apply to GETable
|
|
@@ -130,19 +130,19 @@ var liveProps = map[xml.Name]struct {
|
|
|
// See golang.org/issue/15334.
|
|
// See golang.org/issue/15334.
|
|
|
dir: true,
|
|
dir: true,
|
|
|
},
|
|
},
|
|
|
- xml.Name{Space: "DAV:", Local: "creationdate"}: {
|
|
|
|
|
|
|
+ {Space: "DAV:", Local: "creationdate"}: {
|
|
|
findFn: nil,
|
|
findFn: nil,
|
|
|
dir: false,
|
|
dir: false,
|
|
|
},
|
|
},
|
|
|
- xml.Name{Space: "DAV:", Local: "getcontentlanguage"}: {
|
|
|
|
|
|
|
+ {Space: "DAV:", Local: "getcontentlanguage"}: {
|
|
|
findFn: nil,
|
|
findFn: nil,
|
|
|
dir: false,
|
|
dir: false,
|
|
|
},
|
|
},
|
|
|
- xml.Name{Space: "DAV:", Local: "getcontenttype"}: {
|
|
|
|
|
|
|
+ {Space: "DAV:", Local: "getcontenttype"}: {
|
|
|
findFn: findContentType,
|
|
findFn: findContentType,
|
|
|
dir: false,
|
|
dir: false,
|
|
|
},
|
|
},
|
|
|
- xml.Name{Space: "DAV:", Local: "getetag"}: {
|
|
|
|
|
|
|
+ {Space: "DAV:", Local: "getetag"}: {
|
|
|
findFn: findETag,
|
|
findFn: findETag,
|
|
|
// findETag implements ETag as the concatenated hex values of a file's
|
|
// findETag implements ETag as the concatenated hex values of a file's
|
|
|
// modification time and size. This is not a reliable synchronization
|
|
// modification time and size. This is not a reliable synchronization
|
|
@@ -153,8 +153,8 @@ var liveProps = map[xml.Name]struct {
|
|
|
|
|
|
|
|
// TODO: The lockdiscovery property requires LockSystem to list the
|
|
// TODO: The lockdiscovery property requires LockSystem to list the
|
|
|
// active locks on a resource.
|
|
// active locks on a resource.
|
|
|
- xml.Name{Space: "DAV:", Local: "lockdiscovery"}: {},
|
|
|
|
|
- xml.Name{Space: "DAV:", Local: "supportedlock"}: {
|
|
|
|
|
|
|
+ {Space: "DAV:", Local: "lockdiscovery"}: {},
|
|
|
|
|
+ {Space: "DAV:", Local: "supportedlock"}: {
|
|
|
findFn: findSupportedLock,
|
|
findFn: findSupportedLock,
|
|
|
dir: true,
|
|
dir: true,
|
|
|
},
|
|
},
|