contentmatcher/get_files.py

23 lines
579 B
Python
Raw Permalink Normal View History

2022-05-02 14:15:51 +02:00
#!/usr/bin/python3
from webdav3.client import Client
options = {
#'webdav_login': 'gia',
#'webdav_password': 'gia0000!',
'webdav_token': '2WmQL-G7Jbg-6t7sN-JBRSe-eBGy5',
'webdav_hostname': 'https://obzorje.kompot.si/remote.php/dav/files/dab82616-284e-103c-9287-6de9b1978576/'
#'webdav_hostname': 'https://obzorje.kompot.si',
#'webdav_root': '/remote.php/dav/files/'
}
client = Client(options)
def get_file_list():
return client.list("/GIA CLOUD")
2022-05-13 18:21:10 +02:00
for file in get_file_list():
2022-10-31 18:22:26 +01:00
link = client.get_url(file)
2022-10-31 18:22:26 +01:00
info = client.info("/GIA CLOUD")