31 lines
878 B
Python
31 lines
878 B
Python
#!/usr/bin/env python3
|
|
"""Verify directory structure for Hermes snippet lane task.
|
|
|
|
Production script: verifies all required paths exist.
|
|
Returns:
|
|
- Exit 0 if all paths exist
|
|
- Exit 1 if any path missing
|
|
"""
|
|
import os
|
|
import sys
|
|
import json
|
|
|
|
def check_paths():
|
|
paths = {
|
|
"hermes_profiles_spark": "/root/.hermes/profiles/spark",
|
|
"wizard_outputs": "/root/.hermes/wizard-outputs",
|
|
"troupe_standup": "/root/troupe-standup",
|
|
}
|
|
|
|
results = {}
|
|
for name, path in paths.items():
|
|
exists = os.path.isdir(path)
|
|
results[name] = {"path": path, "exists": exists}
|
|
|
|
all_exist = all(r["exists"] for r in results.values())
|
|
return results, all_exist
|
|
|
|
if __name__ == "__main__":
|
|
results, success = check_paths()
|
|
print(json.dumps({"checks": results, "all_exist": success}, indent=2))
|
|
sys.exit(0 if success else 1) |