diff options
author | btimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f> | 2012-09-17 17:52:43 +0000 |
---|---|---|
committer | btimby <btimby@67cdc799-7952-0410-af00-57a81ceafa0f> | 2012-09-17 17:52:43 +0000 |
commit | beef624d77ae98d5a1d2d718acc17560aebed59c (patch) | |
tree | 35262f623304346f1cdb724b08e59f4026b08ae3 | |
parent | 380ac1bf1756cad807107624c111fcabad033f02 (diff) | |
download | pyfilesystem-beef624d77ae98d5a1d2d718acc17560aebed59c.tar.gz |
No need to override isfile() and isdir() anymore, getinfo() is correct.
git-svn-id: http://pyfilesystem.googlecode.com/svn/trunk@818 67cdc799-7952-0410-af00-57a81ceafa0f
-rw-r--r-- | fs/contrib/archivefs.py | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/fs/contrib/archivefs.py b/fs/contrib/archivefs.py index 7845361..3292601 100644 --- a/fs/contrib/archivefs.py +++ b/fs/contrib/archivefs.py @@ -267,28 +267,6 @@ class ArchiveMountFS(mountfs.MountFS): return info return super(ArchiveMountFS, self).getinfo(path) - def isdir(self, path): - """An isdir() override that allows archives to masquerade as directories. If - the path is not an archive, the call is delegated. In the event that the path - is an archive, that archive is mounted to ensure it can actually be treated - like a directory.""" - fs, _mount_path, delegate_path = self._delegate(path) - if isinstance(fs, ArchiveFS) and path == _mount_path: - # If the path is an archive mount point, it is a directory. - return True - return super(ArchiveMountFS, self).isdir(path) - - def isfile(self, path): - """An isfile() override that checks if the given path is a file or not. It is - not fooled by a mounted archive. If the path is not an archive, the call is - delegated.""" - fs, _mount_path, delegate_path = self._delegate(path, auto_mount=False) - if isinstance(fs, ArchiveFS) and path == _mount_path: - # If the path is an archive mount point, it is a file. - return True - else: - return fs.isfile(delegate_path) - def getsize(self, path): """A getsize() override that returns the size of an archive. It is not fooled by a mounted archive. If the path is not an archive, the call is delegated.""" |