Skip to content

Instantly share code, notes, and snippets.

@zopyx
Last active August 29, 2015 14:02
Show Gist options
  • Save zopyx/95168f75d91d7b2e469c to your computer and use it in GitHub Desktop.
Save zopyx/95168f75d91d7b2e469c to your computer and use it in GitHub Desktop.
pyfilesystem and webdav
(Pdb) DAVFS('http://localhost:6080/exist/webdav/db/output//de/onkopedia/leitlinien/gastrointestinale-stromatumore-gist/current/', dict(username='admin', password='xx'))
<DAVFS: http://localhost:6080/exist/webdav/db/output//de/onkopedia/leitlinien/gastrointestinale-stromatumore-gist/current/>
(Pdb) DAVFS('http://localhost:6080/exist/webdav/db/output//de/onkopedia/leitlinien/gastrointestinale-stromatumore-gist/current/', dict(username='admin', password='xx')).listdir()
[u'metadata.json', u'styles.css', u'index-styles-inline.html', u'index_original_html.bin', u'gastrointestinale-stromatumore-gist.pdf', u'index.html']
(Pdb) DAVFS('http://localhost:6080/exist/webdav/db/output//de/onkopedia/leitlinien/gastrointestinale-stromatumore-gist/current/', dict(username='admin', password='xx')).open('index.html', 'wb')
*** ResourceNotFoundError: Resource not found: index.html
(Pdb) DAVFS('http://localhost:6080/exist/webdav/db/output//de/onkopedia/leitlinien/gastrointestinale-stromatumore-gist/current/', dict(username='admin', password='xx')).open('index.html')
<_io.TextIOWrapper name='index.html' encoding='ANSI_X3.4-1968'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment