Mount using the correct WAPI

master
Sven Slootweg 12 years ago
parent f5194c1186
commit e196a782fc

@ -168,7 +168,7 @@ class Directory:
if fs_available == False:
raise DependencyException("Could not mount the directory because the 'fs' module was not found.")
fs = TahoeLAFS(self.uri)
fs = TahoeLAFS(self.uri, webapi=self.filesystem.url)
try:
return fuse.mount(fs, mountpoint)

@ -1,7 +1,7 @@
import pytahoe
fs = pytahoe.Filesystem("http://localhost:3456/")
print fs
#fs = pytahoe.Filesystem("http://localhost:3456/")
#print fs
#tdir = fs.Directory("URI:DIR2:jjw572jvowd473fo2n7rw6uiai:hloglrouhwgjpubcpyq5nrb4ezyijdfiboe3hquadgzjrmkdikxa")
#print tdir
#for name, item in tdir.children.iteritems():
@ -9,3 +9,6 @@ print fs
#print fs.create_directory().mount("test")
#print fs.upload("test.py")
fs = pytahoe.Filesystem("http://tahoe.ccnmtl.columbia.edu/")
fs.Directory("URI:DIR2:cbk47f5lybaj5qh6bm6eedezwe:m525plntx47u44xvf44r6rliec3gp6yeyio7olndibtke75zb6fa").mount("test")

Loading…
Cancel
Save