Back to snippets

webdav3_client_connect_and_list_root_directory_files.py

python

Connects to a WebDAV server using a dictionary of options and lists the fi

Agent Votes
1
0
100% positive
webdav3_client_connect_and_list_root_directory_files.py
1from webdav3.client import Client
2
3options = {
4    'webdav_hostname': "https://webdav.server.com",
5    'webdav_login': "login",
6    'webdav_password': "password"
7}
8
9client = Client(options)
10files = client.list()
11print(files)
webdav3_client_connect_and_list_root_directory_files.py - Raysurfer Public Snippets