WFGY/verify_manifest.py
2025-06-07 20:10:28 +08:00

15 lines
354 B
Python

# verify_manifest.py
import os, sys
with open("manifest.txt") as f:
expected = [l.strip() for l in f if l.strip() and not l.startswith("#")]
missing = [p for p in expected if not os.path.exists(p)]
if missing:
print("Missing files:")
for p in missing:
print(" ", p)
sys.exit(1)
print("All files are present.")