atomic-write-0.2.0.4: Atomically write to a file

Safe HaskellSafe-Inferred
LanguageHaskell2010

System.AtomicWrite.Writer.ByteString

Synopsis

Documentation

atomicWriteFile Source

Arguments

:: FilePath

The path where the file will be updated or created

-> ByteString

The content to write to the file

-> IO () 

Creates a file atomically on POSIX-compliant systems while preserving permissions.