You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
client.check works but client.info can't find the remote file #22
def downloadFile(id):
remote_path = id + ".zip"
local_path = "C:/User/i/Desktop/" + id + ".zip"
import webdav.client as wc
options = {
'webdav_hostname': "https://server.com:8081/Testfolder/",
'webdav_login': "user",
'webdav_password': 'password'
}
client = wc.Client(options)
client.webdav.is_valid()
client.default_options['SSL_VERIFYPEER'] = False
client.default_options['SSL_VERIFYHOST'] = False
#this statement list all files correctly
print(client.list())
#returns true (as expected)
print(client.check(remote_path))
The error from the Python IDLE console
===== RESTART: C:/Users/i/AppData/Local/Programs/Python/Python36/test.py =====
['Testfolder/', '@Recycle/', '0000249385.zip', 'index.txt']
Traceback (most recent call last):
File "C:/Users/i/AppData/Local/Programs/Python/Python36/test.py", line 62, in <module>
downloadFile("0000249385")
File "C:/Users/i/AppData/Local/Programs/Python/Python36/test.py", line 21, in downloadFile
print(client.info("0000249385.zip").size)
File "C:\Users\i\AppData\Local\Programs\Python\Python36\lib\site-packages\webdav\client.py", line 803, in info
return parse(response, path)
File "C:\Users\i\AppData\Local\Programs\Python\Python36\lib\site-packages\webdav\client.py", line 776, in parse
raise RemoteResourceNotFound(path)
webdav.exceptions.RemoteResourceNotFound: Remote resource: /0000249385.zip not found
Same here, I am also interested in finding how to fix that.
I can list() the directories/files, check() returns True but I cannot use info() or download_sync().
I was facing the same issue here as well... I could list() and check() returned true, but could not download the file.
Fixed the problem by using webdav_root:
Activity
Nayar commentedon Mar 3, 2018
Same issue here. Found anything?
wavefrontshaping commentedon Mar 25, 2018
Hi,
Same here, I am also interested in finding how to fix that.
I can list() the directories/files, check() returns True but I cannot use info() or download_sync().
wavefrontshaping commentedon Mar 25, 2018
Nevermind, I found the solution to my issue here:
#18
Are you by any chance using webdav with Owncloud too?
pingyangtiaer commentedon Apr 11, 2018
I had the same issue,
webdav.exceptions.RemoteResourceNotFound:
Is there anyone can help
alexagv commentedon Aug 16, 2018
I was facing the same issue here as well... I could list() and check() returned true, but could not download the file.
Fixed the problem by using webdav_root: