FileMaker Data API Tools API - v1.8.0
    Preparing search index...

    Function writeFileIfUnchanged

    • Writes only if the file still holds what the caller last read (expected; undefined means it did not exist), so a prompt in between cannot let this overwrite an edit made meanwhile. A change between this check and the rename remains possible but is a very small window.

      Parameters

      • targetPath: string
      • text: string
      • expected: string | undefined

      Returns Promise<void>