@karmaniverous/jeeves
    Preparing search index...

    Function atomicWrite

    • Write content to a file atomically via a temp file + rename.

      Parameters

      • filePath: string

        Absolute path to the target file.

      • content: string

        Content to write.

      Returns void

      Retries the rename up to three times on EPERM (Windows file-handle contention) with a 100 ms synchronous delay between attempts.