Function: renameIfExists()
function renameIfExists(
sourcePath: string,
targetPath: string
): Promise<boolean>;
Defined in: electron/utils/fsSafeOps.ts:52
Best-effort file rename that treats a missing source as a no-op.
Parameters
sourcePath
string
targetPath
string
Returns
Promise<boolean>
true when the source was renamed, otherwise false when the
source path did not exist.