def OpenAsContainer(self):
    if self.IsDirectory():
      return self

    # TODO(user): Add support for more containers here (e.g. registries, zip
    # files etc).
    else:  # For now just guess TSK.
      return VFS_HANDLERS[rdf_paths.PathSpec.PathType.TSK](
          self, rdf_paths.PathSpec(path="/",
                                   pathtype=rdf_paths.PathSpec.PathType.TSK),
          progress_callback=self.progress_callback)
Guesses a container from the current object.
dataset/ETHPy150Open google/grr/grr/client/vfs.py/VFSHandler.OpenAsContainer