30 lines
710 B
Python
30 lines
710 B
Python
#!/usr/bin/env python3
|
|
"""Verify key directories exist for the Hermes environment."""
|
|
import os
|
|
import json
|
|
|
|
results = {
|
|
"cwd": os.getcwd(),
|
|
"directories": {}
|
|
}
|
|
|
|
# Key directories to check
|
|
dirs_to_check = [
|
|
"/root/.hermes/profiles/spark",
|
|
"/root/.hermes/tools",
|
|
"/root/.hermes/cache",
|
|
"/root/.hermes/wizard-outputs/spark",
|
|
"/root/troupe-standup",
|
|
"/root/troupe-standup/wizard-work/spark",
|
|
"/root/.hermes/cron",
|
|
"/root/.hermes/memories",
|
|
"/root/.hermes/skills",
|
|
"/root/.hermes/plugins"
|
|
]
|
|
|
|
for d in dirs_to_check:
|
|
exists = os.path.isdir(d)
|
|
results["directories"][d] = "EXISTS" if exists else "MISSING"
|
|
|
|
# Output results
|
|
print(json.dumps(results, indent=2)) |