syncthing / syncthing/syncthing-macos

Modification dates of folders/files are being changed from syncing

Open
#266 6 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.