úÎOùSafeSync a file to diskBOnly supported on Posix (patches with Windows support are welcome) Variation of withFile for output files.ÿ{Output is written to a temporary file. Once the action has completed, this file is then sync'ed to disk (see |syncFile|) and renamed to its final destination. In Posix, this is an atomic operation. If an exception is raised, then the temporary output file will be deleted and not saved to disk. Thus, the result file will either contain the complete result or will be empty. File to syncFinal desired file pathaction to executeNoneAWrite to file |finalname| using a temporary file and atomic move.‹The file is only written if the sink runs to completion without errors. Any form of early termination will cause the output to be removed.'Conduit using a Handle in an atomic wayFinal filenameFinal filenameConduit which uses a Handle %safeio-0.0.4.0-DOhgcIlEU6iHIQpO5hYBvFSystem.IO.SafeWriteData.Conduit.SafeWritesyncFilewithOutputFileallocateTempFilefinalizeTempFile safeSinkFileatomicConduitUseFile