Israeli Bank Importer - v1.44.5
    Preparing search index...

    Function checkWholeWrite

    • Rejects a stage the filesystem reported as successful but incomplete.

      The port returns a byte count for exactly this reason. Trusting the success flag alone would publish truncated JSON, which reads back as a damaged store and loses every credential the file used to hold.

      Parameters

      • bytesWritten: number

        What the filesystem said it staged.

      • bytesExpected: number

        What the payload actually measures.

      Returns Procedure<number>

      The byte count when the two agree, a failure when they do not.