Says files are different but they aren't

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mbartens@staffassoc.com
    Visitor
    • May 2018
    • 3

    Says files are different but they aren't

    Hi,
    I'm doing a folder compare and although it says the files are different, when I open them they are not. The file stamps are different but Compare timestamps is not checked. Any ideas? TIA!
  • Aaron
    Team Scooter
    • Oct 2007
    • 15997

    #2
    Hello,

    What is checked in the Folder Compare, Session Settings, Comparison tab? Timestamps is verified unchecked? Is Size? Something must be checked that is also different.

    Double clicking is running a Rules-based scan, which you can enable on the Folder level to see similar results:
    http://www.scootersoftware.com/suppo...ferentthensame
    Aaron P Scooter Software

    Comment

    • mbartens@staffassoc.com
      Visitor
      • May 2018
      • 3

      #3
      If I have all options unchecked it does not pick up files that do have differences - in this case php files.

      If I go back and check Compare file size it says all files are different.


      Also, this is SFTP instead of FTP if that makes a difference.

      Comment

      • Chris
        Team Scooter
        • Oct 2007
        • 5538

        #4
        It's probably due to newline differences.

        Windows text files mark newline with two characters, carriage return + line feed. Unix/Linux text files mark newline with a single character, line feed. This results in a size difference.

        If you turn on rules-based comparison it will ignore the newline difference in the Folder Compare. To turn it on, click the Rules toolbar button. Check Compare Contents. Then select Rules-based comparison.

        To prevent newline from changing when copying between Windows and Linux systems using SFTP (also FTP), open Tools > Profiles. Select the profile of your server or the default profile. Go to the Transfer tab. Set Transfer type to Binary, then Save. The default setting is Auto, which converts newline style using ASCII transfer mode for text file types (.php, .html, etc) and Binary mode (no conversion) for non-text file types (.png, .jpg, etc). Web content usually works fine if the newline style doesn't match the operating system type, but system configuration files usually don't work if newline type is mismatched.

        For more information, see the Wikipedia article on Newline:
        https://en.wikipedia.org/wiki/Newline
        Last edited by Chris; 22-May-2018, 10:53 AM.
        Chris K Scooter Software

        Comment

        • mbartens@staffassoc.com
          Visitor
          • May 2018
          • 3

          #5
          Originally posted by Chris
          It's probably due to newline differences.

          Windows text files mark newline with two characters, carriage return + line feed. Unix/Linux text files mark newline with a single character, line feed. This results in a size difference.

          If you turn on rules-based comparison it will ignore the newline difference in the Folder Compare. To turn it on, click the Rules toolbar button. Check Compare Contents. Then select Rules-based comparison.

          To newline from changing when copying between Windows and Linux systems using SFTP (also FTP), open Tools > Profiles. Select the profile of your server or the default profile. Go to the Transfer tab. Set Transfer type to Binary, then Save. The default setting is Auto, which converts newline style using ASCII transfer mode for text file types (.php, .html, etc) and Binary mode (no conversion) for non-text file types (.png, .jpg, etc). Web content usually works fine if the newline style doesn't match the operating system type, but system configuration files usually don't work if newline type is mismatched.

          For more information, see the Wikipedia article on Newline:
          https://en.wikipedia.org/wiki/Newline
          Thank you so much! Changing the rules fixed it!!

          Comment

          Working...