Skip to content

Instantly share code, notes, and snippets.

@zopyx
Created December 1, 2014 16:49
Show Gist options
  • Save zopyx/bfec3e73637afad525e8 to your computer and use it in GitHub Desktop.
Save zopyx/bfec3e73637afad525e8 to your computer and use it in GitHub Desktop.
from fs.contrib.davfs import DAVFS
handle = DAVFS('http://host:6080/exist/webdav/db', credentials=dict(username='admin', password='admin'))
for i in range(100000):
print i
fp = handle.open('d1/{}.xml'.format(i), 'wb')
fp.write('<xml>hello world</xml>')
fp.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment