syncthing / syncthing/syncthing-macos
Modification dates of folders/files are being changed from syncing
Nobody has claimed this yet.
- Dominant language
- Objective-C
- Stars
- 3.9k
- Forks
- 203
- Avg merge
- 3d 14h
- Merged PRs (30d)
- 2
Description
Hi, I recently installed and started using Syncthing for the first time, and from the very first sync have experienced critical issues w/ the app destructively editing modification dates of folders, and breaking/rewriting alias files (rather than syncing them) on both computers. I’m using v1.30.0 to sync between 2 MacBook Pros, one using Sequoia 15.6.1 and the other using Catalina 10.15.7, but both issues also happened on the previous 1.29.7 version of Syncthing.
Many folders and a small portion of files that haven’t been opened/edited since well before installing Syncthing have had their modification dates unexpectedly updated by Syncthing to the time of sync, and then moved to the top of the folder above the Syncthing “.stfolder”. This pushes all of the recent folders (w/ accurate mod dates) way down below a long list of very old irrelevant ones (w/ inaccurate mod dates) that have floated to the top. Therefore, if you sort by Date Modified it throws everything out of order, which makes them useless for my purposes.
This prompted me to replace all of these files w/ backup copies just to restore the correct mod dates. Though tedious and time-consuming, initially I thought this would provide a workaround, but the backup copies which now have the dates corrected and matched to the files on the other laptop trigger the exact same issue on it. But there isn’t any discernible pattern that I can see.
Also, if I Stop or Pause All Devices on either laptop, the sync still runs for a while, changing mod dates of folders/files as I watch them in real time float to the top of the parent folder. I have to quit the app in order to get the process to stop right away.
Very surprisingly, 0 issues turn up when I searched this repository for alias or modification date. Considering that an even more critical issue happens during the sync process with rewriting alias files and replacing them with Syncthing text files, it would seem that preventing the app from modifying files that it syncs would solve both issues. I’ll create a separate issue for aliases.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file, test, or entry point is named. Reproduce the sync between macOS Sequoia 15.6.1 and Catalina 10.15.7 using Syncthing 1.30.0, while observing modification dates and behavior after pausing or stopping devices; done means syncing no longer changes unrelated dates.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, objective-c
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100