educatic-info/bin/nextcloud/20-find-files.sh

20 lines
424 B
Bash
Raw Normal View History

2022-12-02 10:22:11 +01:00
#!/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>'