diff options
author | btimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f> | 2012-01-21 21:03:44 +0000 |
---|---|---|
committer | btimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f> | 2012-01-21 21:03:44 +0000 |
commit | 3990d4bb60d4764a6fa01189a39a79decf4e4754 (patch) | |
tree | 3d69b937c38abf01b135fed6bf5d506f670c0aad /fs/contrib | |
parent | 1b67c210c941d35057a2a2ae532b5c5e17c25a66 (diff) | |
download | pyfilesystem-git-3990d4bb60d4764a6fa01189a39a79decf4e4754.tar.gz |
ArchiveMountFS now accepts a root file system rather than a root_path. This allows "wrapping" file systems other than OSFS.
Diffstat (limited to 'fs/contrib')
-rw-r--r-- | fs/contrib/archivefs.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/contrib/archivefs.py b/fs/contrib/archivefs.py index 863f62c..f363056 100644 --- a/fs/contrib/archivefs.py +++ b/fs/contrib/archivefs.py @@ -187,7 +187,6 @@ class ArchiveMountFS(mountfs.MountFS): archives are mounted in place of the archive file.''' def __init__(self, root, **kwargs): super(ArchiveMountFS, self).__init__(**kwargs) - self.root_path = root_path self.mountdir('/', root) def ismount(self, path): @@ -204,7 +203,7 @@ class ArchiveMountFS(mountfs.MountFS): break if libarchive.is_archive_name(ppath): # It looks like an archive, try mounting it. - full_path = pathjoin(self.root_path, relpath(ppath)) + full_path = self.getsyspath(ppath) try: self.mountdir(ppath, ArchiveFS(full_path, 'r')) except: |