Function: syncFileSafely()
function syncFileSafely(filePath: string): Promise<void>;
Defined in: electron/utils/fsSafeOps.ts:110
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.