Unverified Commit 102d0784 authored by Oleh's avatar Oleh

add doc and script to check certificates

parent 931578ba
......@@ -13,11 +13,17 @@ def main():
exit(2)
certs_path = os.path.join(path, "cert_data", "new_certs")
if not os.path.exists(certs_path):
print("No such file or directory: ", certs_path)
exit(3)
if len(os.listdir(certs_path)) == 0:
print("Empty certificates directory. Nothing to review.")
return
print("Total number of elements in folder:", len(os.listdir(certs_path)))
for entity in os.listdir(certs_path):
print("Reviewing", entity)
entity_path = os.path.join(certs_path, entity)
if not os.path.isfile(entity_path):
print("Not a regular file. Skipping.")
......@@ -33,6 +39,5 @@ def main():
print(line)
break
if __name__ == '__main__':
main()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment