"""Synthetic support example: copy one configured CSV to its export destination.""" import json from pathlib import Path import sys config = json.loads(Path("config.json").read_text()) try: data = Path(config["input"]).read_bytes() Path(config["output"]).write_bytes(data) except OSError as error: print(f"Export failed: {error.strerror}: {error.filename}", file=sys.stderr) sys.exit(1) print(f"Exported {len(data)} bytes to {config['output']}")