doocus update and meeting list export

This commit is contained in:
Mariano Gabriel
2026-07-05 11:15:57 -03:00
parent fa3a0e3d1a
commit 300806b936
17 changed files with 614 additions and 628 deletions

View File

@@ -87,6 +87,14 @@ def build_index(source_root, output_dir, options=None, dry_run=False) -> dict:
json.dumps(index, indent=2, ensure_ascii=False), encoding="utf-8"
)
logger.info("Wrote index: %s (%d files)", out / "index.json", len(files))
# Export ONLY the meeting paths (relative), so a meetus run elsewhere reads
# just what it needs: mount the drive at a new root and feed this list to
# `ctrl/batch.sh -l`. Relative paths re-root cleanly under the new mount.
meetings = [f["path"] for f in files if f["mode"] == "meeting"]
(out / "meetings.txt").write_text(
"".join(m + "\n" for m in meetings), encoding="utf-8"
)
logger.info("Wrote meetings list: %s (%d meetings)", out / "meetings.txt", len(meetings))
return index