mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-06 19:00:46 +01: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.