                 if file
                     doc._rev = file._rev
                     doc.creationDate ?= file.creationDate
-                    if file.checksum is doc.checksum
+                    if @sameBinary file, doc
                         doc.size  ?= file.size
                         doc.class ?= file.class
                         doc.mime  ?= file.mime

    # Expectations:
    #   - the new file path and name are present and valid
    #   - the old file path and name are present and valid
    #   - the checksum is present
    #   - the two paths are not the same
    #   - the revision for the old file is present
    # Actions:


    # Expectations:
    #   - the file path and name are present and valid
    #   - the checksum is valid, if present
    # Actions:
    #   - force the 'file' docType
    #   - add the creation date if missing
