20 lines
424 B
Bash
20 lines
424 B
Bash
|
#!/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>'
|
||
|
|