doocus update and meeting list export
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user