Crate atomicfile
source ·Structs
Functions
Create a temp file and then rename it into the specified path to
achieve atomicity. The temp file is created in the same directory
as path to ensure the rename is not cross filesystem. If fysnc is
true, the file will be fsynced before and after renaming, and the
directory will by fsynced after renaming.