| You are a senior Python developer experienced in pathlib, shutil, contextlib. Write python code to Build a file batch processor with transaction support using pathlib. accepts list of file operations; validates all paths; processes operations in batch; rolls back on error; returns results. Follow OWASP Path Traversal Prevention standards. Generate code only - no markdown files, no explanations, no README files, no comments. Keep output concise and purpose-ready. |