Ignore file size difference in comparison

Discuss new features and functions
Posts: 1
Joined: 15 Nov 2024

drmrbrewer

I'm trying to create a mirror sync to a folder that happens to be the sync folder for a SharePoint (OneDrive) site. In other words, the file content is hosted on SharePoint and sync is enabled so it creates a local folder which you can use to access the content via File Explorer.

The SharePoint content is itself copied from an original source folder.

Now I want to create a mirror sync from the original source folder to the sharepoint sync folder, to catch any changes that have happened since the content was copied over to sharepoint. Those changes will copy to the sync folder and then that will sync up to sharepoint.

Thing is, MS seems to add metadata to files that are added in SharePoint (see e.g. here: https://answers.microsoft.com/en-us/msoffice/forum/all/files-are-different-sizes-when-stored-in-onedrive/b0dae46f-2f68-4948-a099-07c063eaaf2c). So although the file date/time is the same, the file on the SharePoint side (in the sync folder) is slightly larger.

So, this means that freefilesync will treat them all as "different" even when they are not.

I came across this issue when trying to use robocopy... it too uses date and file size for the comparison. I was hoping there was an option in freefilesync to be more sophisticated, and ask it to ignore file size differences (either completely, or within a certain percentage difference).
User avatar
Posts: 4054
Joined: 11 Jun 2019

xCSxXenon

viewtopic.php?t=11171
viewtopic.php?t=9562
I'm not sure that there is any way around this other than removing SharePoint. If you don't consider files different based on size or content, there isn't anything else to reliably base it off of.