Commit 8167f68a by willmcgugan

fixes

parent 477e5112
......@@ -54,10 +54,13 @@ class DirMount(object):
self.fs = fs
def __str__(self):
return "Mount point: <%s,%s>" % (self.path,self.fs,)
__repr__ = __str__
return "<DirMount %s, %s>" % (self.path, self.fs)
def __repr__(self):
return "<DirMount %s, %s>" % (self.path, self.fs)
def __unicode__(self):
return unicode(str(self))
return u"<DirMount %s, %s>" % (self.path, self.fs)
class FileMount(object):
......@@ -272,7 +275,6 @@ class MountFS(FS):
else:
yield mkpath(p)
@synchronize
def makedir(self, path, recursive=False, allow_recreate=False):
fs, _mount_path, delegate_path = self._delegate(path)
......@@ -397,6 +399,7 @@ class MountFS(FS):
:param fs: A filesystem object to mount
"""
path = abspath(normpath(path))
self.mount_tree[path] = MountFS.DirMount(path, fs)
mount = mountdir
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment