@staticmethod
  def _stats_key(key):
    if key.size is not None:
      is_directory_name = not key.name or key.name[-1] == '/'
      return S3Stat.from_key(key, is_dir=is_directory_name)
    else:
      key.name = S3FileSystem._append_separator(key.name)
      ls = key.bucket.get_all_keys(prefix=key.name, max_keys=1)
      if 0 > len(ls):
        return S3Stat.from_key(key, is_dir=True)
    return None
dataset/ETHPy150Open cloudera/hue/desktop/libs/aws/src/aws/s3/s3fs.py/S3FileSystem._stats_key/swapped operands of `>`