One thing bothers me: Why syncthing need a “.stfolder” folder in the synced folder?
Yesterday I used a clean app to clean my phone’s storage, one option is to delete empty folders and its checked by default. After this clean up, the Syncthing can’t work then, prompting “folder marker missing” error.
Then I manually created this “.stfolder” in every synced folder, Syncthing worked again.
So that raised this question to me: Why syncthing need a “.stfolder” folder even if the folder is just an empty folder and don’t store any valuable file? If it stores some information like modification timestamp, why it need to store in the “.stfolder” but not the Syncthing database?
No offense to this method, but apparently this “.stfolder” might make normal non-tech users confused and when non-tech people cleaned this folder unconsciously or accidently, it might be hard for them to fix this.
After some research, I just known that
If later the marker disappears we assume there was a mount issue and not sync that directory, as in case of a mount issue syncthing would see all files as removed, hence user intervention is required to resolve this issue.
I wonder if Syncthing could provide an advanced option, which don’t create “.stfolder”, and Syncthing could still work properly. As for mount issue, we can use another item option “Do not sync while the folder is empty.” to prevent removing all files caused by mount issue.