def _get_status(self):
    req = IsEnabledRequest()
    req.set_package(self._package)
    for capability in self._capabilities:
      req.add_capability(capability)
    for method in self._methods:
      req.add_call(method)

    resp = capability_service_pb.IsEnabledResponse()
    self._stub_map.MakeSyncCall('capability_service', 'IsEnabled', req, resp)

    if resp.summary_status() == IsEnabledResponse.UNKNOWN:
      raise UnknownCapabilityError()

    return resp
Basically os.listdir with some filtering.
dataset/ETHPy150Open CollabQ/CollabQ/.google_appengine/google/appengine/api/capabilities/__init__.py/CapabilitySet._get_status--crossover with--dataset/ETHPy150Open tweekmonster/moult/moult/filesystem_scanner.py/_scan_directory