EasyWebDAVPython 的 WebDAV 开发包
EasyWebDAV 是 Python 语言实现的 WebDAV 客户端开发包。
示例代码:
import easywebdav # Start off by creating a client object. Username and # password may be omitted if no authentication is needed. webdav = easywebdav.connect('webdav.your-domain.com', username='myuser', password='mypass') # Do some stuff: webdav.mkdir('some_dir') webdav.rmdir('another_dir') webdav.download('remote/path/to/file', 'local/target/file') webdav.upload('local/path/to/file', 'remote/target/file')
评论