appetito / webdav-client-python-2

WebDAV Client - based on http://designerror.github.io/webdav-client-python, use requests instead of PyCURL
Other
1 stars 4 forks source link

client method upload_file won't work #2

Open ezhov-evgeny opened 7 years ago

ezhov-evgeny commented 7 years ago

Steps to reproduce:

  1. Creates new instance of Client with correct options
  2. Invoke method client.upload with correct paths to local and remote file

Expected result: Local file will be uploaded on WebDAV server

Actual result: An error was occured

Part of stacktrace:

File "C:\tools\Python27\lib\site-packages\webdav2\client.py", line 391, in upload self.upload_file(local_path=local_path, remote_path=remote_path, progress=progress) File "C:\tools\Python27\lib\site-packages\webdav2\client.py", line 58, in _wrapper res = fn(self, *args, **kw) File "C:\tools\Python27\lib\site-packages\webdav2\client.py", line 458, in upload_file data=buff NameError: global name 'buff' is not defined