[U] .
parent
637e757488
commit
6f128d83b5
|
@ -10,14 +10,16 @@ webdav = nextcloud.webdav
|
||||||
path = webdav.directory.instance_variable_get(:@path)
|
path = webdav.directory.instance_variable_get(:@path)
|
||||||
puts "* webdav.directory(@path): #{path}"
|
puts "* webdav.directory(@path): #{path}"
|
||||||
|
|
||||||
|
# dir = "files_from_git"
|
||||||
|
# binding.break
|
||||||
|
# result = webdav.directory.create(dir)
|
||||||
|
# puts result
|
||||||
|
|
||||||
dir = "files_from_git"
|
# result = webdav.directory.put("lib.rb", File.join(dir, "lib.rb"))
|
||||||
binding.break
|
# puts result
|
||||||
result = webdav.directory.create(dir)
|
|
||||||
puts result
|
|
||||||
|
|
||||||
result = webdav.directory.put("lib.rb", File.join(dir, "lib.rb"))
|
dir2 = "/remote.php/dav/files/dvarrui/"
|
||||||
puts result
|
file = "Nextcloud%20Manual.pdf"
|
||||||
|
|
||||||
dir = webdav.directory.find
|
data = webdav.directory.find file
|
||||||
puts dir.contents
|
puts data.contents
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
. .env
|
||||||
|
|
||||||
|
echo $URL
|
||||||
|
echo "===="
|
||||||
|
|
||||||
|
curl -u $USERNAME:$PASSWORD "$URL/remote.php/dav/files/$USERNAME" -X PROPFIND --data '<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<d:propfind xmlns:d="DAV:">
|
||||||
|
<d:prop xmlns:oc="http://owncloud.org/ns">
|
||||||
|
<d:getlastmodified/>
|
||||||
|
<d:getcontentlength/>
|
||||||
|
<d:getcontenttype/>
|
||||||
|
<oc:permissions/>
|
||||||
|
<d:resourcetype/>
|
||||||
|
<d:getetag/>
|
||||||
|
</d:prop>
|
||||||
|
</d:propfind>'
|
||||||
|
|
Loading…
Reference in New Issue