def get_size(self):
    if not self._is_open:
      raise IOError(u'Not opened.')

    if not hasattr(self._file_object, u'get_size'):
      if not self._size:
        current_offset = self.get_offset()
        self.seek(0, os.SEEK_END)
        self._size = self.get_offset()
        self.seek(current_offset, os.SEEK_SET)
      return self._size

    return self._file_object.get_size()
Returns the size of the file-like object.
dataset/ETHPy150Open log2timeline/dfvfs/dfvfs/file_io/file_object_io.py/FileObjectIO.get_size