mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-25 12:09:06 +00:00
To simulate atomic writes, use a context manager to write to a temporary file location and then rename over the original file. This is performed using the `safe_move` method which performs this operation and handles cases where the source and destination are on separate file systems.