How to make file creation an atomic operation? August 18, 2022 by Magenaut I am using Python to write chunks of text to files in a single operation: