mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-01-18 12:06:08 +00:00
0c1229df8c
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.