... | ... | @@ -38,7 +38,7 @@ res = webdav.move("/file.html", "/newdir/copy.html") |
|
|
lock_res = webdav.lock("/file.html")
|
|
|
unlock_res = webdav.unlock("/file.html", lock_res.headers["lock-token"])
|
|
|
# or, using the block form:
|
|
|
webdav.lock("/file.html") do |lock_res|
|
|
|
webdav.lock("/file.html") do |_lock_res|
|
|
|
# do something
|
|
|
end # unlocked
|
|
|
# PROPFIND
|
... | ... | @@ -55,7 +55,7 @@ res = webdav.propfind("/file.html", <<-XML |
|
|
<R:Random/>
|
|
|
</D:prop>
|
|
|
</D:propfind>
|
|
|
XML
|
|
|
XML
|
|
|
)
|
|
|
# PROPPATCH
|
|
|
res = webdav.proppatch("/file.html", <<-XML
|
... | ... | @@ -70,7 +70,7 @@ res = webdav.proppatch("/file.html", <<-XML |
|
|
<D:remove>
|
|
|
<D:prop><Z:Copyright-Owner/></D:prop>
|
|
|
</D:remove>
|
|
|
XML
|
|
|
XML
|
|
|
)
|
|
|
```
|
|
|
|
... | ... | |