Function: syncFileSafely()
syncFileSafely(
filePath:string):Promise<void>
Defined in: electron/utils/fsSafeOps.ts:31
Best-effort fsync() for a file path.
Parameters
filePath
string
Returns
Promise<void>
Remarks
This reduces the chance of ending up with a zero-length/partially-written replacement file if the machine crashes or loses power around a rename.