mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-07-17 19:13:58 -04:00
24 lines
533 B
Bash
Executable File
24 lines
533 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
QUERY="${1:-audio.artist:Motörhead}"
|
|
|
|
https --ignore-stdin --verify=no -a admin:admin REPORT \
|
|
https://localhost:9200/dav/spaces/ \
|
|
Content-Type:application/xml \
|
|
--raw "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
|
|
<search-files xmlns=\"DAV:\">
|
|
<prop>
|
|
<displayname/>
|
|
<resourcetype/>
|
|
<getcontenttype/>
|
|
<getcontentlength/>
|
|
<getlastmodified/>
|
|
</prop>
|
|
<search>
|
|
<pattern>${QUERY}</pattern>
|
|
<limit>50</limit>
|
|
<offset>0</offset>
|
|
</search>
|
|
</search-files>"
|