@backblaze-labs/b2-sdk - v0.1.0
    Preparing search index...

    Function filesAreDifferent

    • Determines whether two files should be considered different based on the compare mode.

      Parameters

      • source: SyncPath

        The source file metadata.

      • dest: SyncPath

        The destination file metadata.

      • compareMode: CompareMode

        The comparison strategy: 'modtime', 'size', or 'none'.

      • threshold: number = 0

        Tolerance for the comparison (bytes for size, milliseconds for modtime).

      Returns boolean

      true if the files are considered different.