def _Open(self, path_spec, mode='rb'):
    if not path_spec.HasParent():
      raise errors.PathSpecError(
          u'Unsupported path specification without parent.')

    file_object = resolver.Resolver.OpenFileObject(
        path_spec.parent, resolver_context=self._resolver_context)

    try:
      # Explicitly tell tarfile not to use compression. Compression should be
      # handled by the file-like object.
      tar_file = tarfile.open(mode='r:', fileobj=file_object)
    except:
      file_object.close()
      raise

    self._file_object = file_object
    self._tar_file = tar_file
Opens the file system object defined by path specification.
dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/vfs/tar_file_system.py/TARFileSystem._Open