in aws-iot-events-for-beginners/main.py [0:0]
def file_exist_check(cert_list):
"""
Check the files exists
all certs must placed in ./certs directory
Parameters
----------
cert_list: Array
"""
for file in cert_list:
if not os.path.exists(file):
# if file not found, raise
logger.error("cert file not found:%s", file)
raise RuntimeError("file_not_exists")