Commit 8167f68a by willmcgugan

fixes

parent 477e5112
...@@ -54,10 +54,13 @@ class DirMount(object): ...@@ -54,10 +54,13 @@ class DirMount(object):
self.fs = fs self.fs = fs
def __str__(self): def __str__(self):
return "Mount point: <%s,%s>" % (self.path,self.fs,) return "<DirMount %s, %s>" % (self.path, self.fs)
__repr__ = __str__
def __repr__(self):
return "<DirMount %s, %s>" % (self.path, self.fs)
def __unicode__(self): def __unicode__(self):
return unicode(str(self)) return u"<DirMount %s, %s>" % (self.path, self.fs)
class FileMount(object): class FileMount(object):
...@@ -272,7 +275,6 @@ class MountFS(FS): ...@@ -272,7 +275,6 @@ class MountFS(FS):
else: else:
yield mkpath(p) yield mkpath(p)
@synchronize @synchronize
def makedir(self, path, recursive=False, allow_recreate=False): def makedir(self, path, recursive=False, allow_recreate=False):
fs, _mount_path, delegate_path = self._delegate(path) fs, _mount_path, delegate_path = self._delegate(path)
...@@ -397,6 +399,7 @@ class MountFS(FS): ...@@ -397,6 +399,7 @@ class MountFS(FS):
:param fs: A filesystem object to mount :param fs: A filesystem object to mount
""" """
path = abspath(normpath(path))
self.mount_tree[path] = MountFS.DirMount(path, fs) self.mount_tree[path] = MountFS.DirMount(path, fs)
mount = mountdir 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